Skip to content

Commit

Permalink
fix: naming of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emilhorlyck committed Oct 16, 2023
1 parent ad0019b commit ba2c477
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions tests/ArchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,40 @@
->expect(['dd', 'dump', 'ray'])
->not->toBeUsed();

test('app')
test('invokable actions')
->expect('App\Actions')
->toBeInvokable();

test('app')
test('models extend eloquent')
->expect('App\Models')
->toExtend('Illuminate\Database\Eloquent\Model');

test('app')
test('jobs implement should queue')
->expect('App\Jobs')
->toImplement('Illuminate\Contracts\Queue\ShouldQueue');

// Suffixes

test('app')
test('controllers end with controller')
->expect('App\Http\Controllers')
->toHaveSuffix('Controller');

test('app')
test('jobs end with job')
->expect('App\Jobs')
->toHaveSuffix('Job');

test('app')
test('clients end with client')
->expect('App\Http\Clients')
->toHaveSuffix('Client');

test('app')
test('factories end with factory')
->expect('App\databases\factories')
->toHaveSuffix('Factory');

test('app')
test('seeders end with seeder')
->expect('App\database\seeders')
->toHaveSuffix('Seeder');

test('app')
->expect('App\Http\Controllers')
->toHaveSuffix('Controller');

test('app')
test('providers end with provider')
->expect('App\Providers')
->toHaveSuffix('Provider');

0 comments on commit ba2c477

Please sign in to comment.