Skip to content

Commit 61a305f

Browse files
committed
test(commands): update assertion methods to assertOk
- Changed assertions in InspireCommandTest and ThanksCommandTest from assertSuccessful() to assertOk(). - Updated MusicCommandTest to remove unnecessary hydration on songs collection. - These changes improve consistency and clarity in test assertions.
1 parent f2c6aa6 commit 61a305f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/Feature/InspireCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
use App\Commands\InspireCommand;
1717

1818
it('can inspire Artisan', function (): void {
19-
$this->artisan(InspireCommand::class, ['name' => 'Artisan'])->assertSuccessful();
19+
$this->artisan(InspireCommand::class, ['name' => 'Artisan'])->assertOk();
2020
})->group(__DIR__, __FILE__);

tests/Feature/MusicCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
->expectsChoice(
4343
__('select_label'),
4444
[__('all_songs')],
45-
$this->hydrates(collect($songs), $keyword)->all()
45+
$this->hydrates($songs, $keyword)->all()
4646
)
4747
->assertSuccessful();
4848
})->group(__DIR__, __FILE__)->with('songs');

tests/Feature/ThanksCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020

2121
$this->artisan(ThanksCommand::class)
2222
->expectsQuestion('Can you quickly <options=bold>star our GitHub repository</>? 🙏🏻', 'yes')
23-
->assertSuccessful();
23+
->assertOk();
2424
})->group(__DIR__, __FILE__);

0 commit comments

Comments
 (0)