We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 035964d commit b962868Copy full SHA for b962868
tests/Feature/Console/RepositoryTest.php
@@ -23,6 +23,10 @@ public function test_it_can_generate_model_repository_command()
23
'name' => 'UserRepository',
24
'--model' => 'PPSpaces/Tests/App/User',
25
'--no-interaction'
26
- ])->assertExitCode(0);
+ ])
27
+ ->expectsQuestion('A App\PPSpaces\Tests\App\User model does not exist. Do you want to generate it?', 'yes')
28
+ ->expectsOutput('Model created successfully.')
29
+ ->expectsOutput('Repository created successfully.')
30
+ ->assertExitCode(0);
31
}
32
0 commit comments