mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
This commit is contained in:
parent
c67a182cf2
commit
b4b6286172
89 changed files with 672 additions and 666 deletions
|
|
@ -7,7 +7,7 @@ use Illuminate\Foundation\Testing\RefreshDatabase;
|
|||
|
||||
uses(RefreshDatabase::class);
|
||||
|
||||
test('example recipes seeder command calls seeder with correct user id', function () {
|
||||
test('example recipes seeder command calls seeder with correct user id', function (): void {
|
||||
$seeder = Mockery::mock(ExampleRecipesSeeder::class);
|
||||
$seeder->shouldReceive('run')
|
||||
->once()
|
||||
|
|
@ -19,14 +19,14 @@ test('example recipes seeder command calls seeder with correct user id', functio
|
|||
->assertExitCode(0);
|
||||
});
|
||||
|
||||
test('example recipes seeder command has correct signature', function () {
|
||||
test('example recipes seeder command has correct signature', function (): void {
|
||||
$command = $this->app->make(App\Console\Commands\ExampleRecipesSeederCommand::class);
|
||||
|
||||
expect($command->getName())->toBe('recipes:seed');
|
||||
expect($command->getDescription())->toBe('Seed example recipes');
|
||||
});
|
||||
|
||||
test('example recipes seeder command prompts for missing input', function () {
|
||||
test('example recipes seeder command prompts for missing input', function (): void {
|
||||
$seeder = Mockery::mock(ExampleRecipesSeeder::class);
|
||||
$seeder->shouldReceive('run')
|
||||
->once()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue