Skip to content

Commit b962868

Browse files
committed
Update Tests\Feature\Console\RepositoryTest.php, add expectedOutput
1 parent 035964d commit b962868

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/Feature/Console/RepositoryTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ public function test_it_can_generate_model_repository_command()
2323
'name' => 'UserRepository',
2424
'--model' => 'PPSpaces/Tests/App/User',
2525
'--no-interaction'
26-
])->assertExitCode(0);
26+
])
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);
2731
}
2832
}

0 commit comments

Comments
 (0)