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
|
|
@ -6,24 +6,24 @@ use Illuminate\Foundation\Testing\RefreshDatabase;
|
|||
|
||||
uses(RefreshDatabase::class);
|
||||
|
||||
test('firmware check command has correct signature', function () {
|
||||
test('firmware check command has correct signature', function (): void {
|
||||
$command = $this->app->make(App\Console\Commands\FirmwareCheckCommand::class);
|
||||
|
||||
expect($command->getName())->toBe('trmnl:firmware:check');
|
||||
expect($command->getDescription())->toBe('Checks for the latest firmware and downloads it if flag --download is passed.');
|
||||
});
|
||||
|
||||
test('firmware check command runs without errors', function () {
|
||||
test('firmware check command runs without errors', function (): void {
|
||||
$this->artisan('trmnl:firmware:check')
|
||||
->assertExitCode(0);
|
||||
});
|
||||
|
||||
test('firmware check command runs with download flag', function () {
|
||||
test('firmware check command runs with download flag', function (): void {
|
||||
$this->artisan('trmnl:firmware:check', ['--download' => true])
|
||||
->assertExitCode(0);
|
||||
});
|
||||
|
||||
test('firmware check command can run successfully', function () {
|
||||
test('firmware check command can run successfully', function (): void {
|
||||
$this->artisan('trmnl:firmware:check')
|
||||
->assertExitCode(0);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue