Skip to content

Commit

Permalink
tests: add immutable response
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyMckenzie committed Mar 1, 2024
1 parent e9eeaef commit 7091772
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tests/Arch.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,26 @@

namespace Tests;

test('All source files are strictly typed')->expect('OpenBreweryDb\\')->toUseStrictTypes();
test('All source files are strictly typed')
->expect('OpenBreweryDb\\')
->toUseStrictTypes();

test('All tests files are strictly typed')->expect('Tests\\')->toUseStrictTypes();
test('All tests files are strictly typed')
->expect('Tests\\')
->toUseStrictTypes();

test('Value objects should be immutable')
->expect('OpenBreweryDb\\ValueObjects\\')
->toBeFinal()
->and('OpenBreweryDb\\ValueObjects\\')
->toBeReadonly();

test('Responses should be immutable')
->expect('OpenBreweryDb\\Responses\\Breweries\\')
->toBeFinal()
->and('OpenBreweryDb\\Responses\\Breweries\\')
->toBeReadonly();

test('Contracts should be abstract')
->expect('OpenBreweryDb\\Contracts\\')
->toBeInterfaces();
Expand Down

0 comments on commit 7091772

Please sign in to comment.