mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
feat: add tests, chore: update readme
This commit is contained in:
parent
715e6a2562
commit
e6a2bdb3bc
27 changed files with 1179 additions and 299 deletions
13
tests/Feature/Console/ScreenGeneratorCommandTest.php
Normal file
13
tests/Feature/Console/ScreenGeneratorCommandTest.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
use App\Jobs\GenerateScreenJob;
|
||||
use Illuminate\Support\Facades\Bus;
|
||||
|
||||
test('it generates screen with default parameters', function () {
|
||||
Bus::fake();
|
||||
|
||||
$this->artisan('trmnl:screen:generate')
|
||||
->assertSuccessful();
|
||||
|
||||
Bus::assertDispatched(GenerateScreenJob::class);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue