Skip to content

Commit

Permalink
Add Policy suffix to policies
Browse files Browse the repository at this point in the history
  • Loading branch information
olivernybroe committed Oct 10, 2024
1 parent 0a7bff0 commit 647de2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ArchPresets/Laravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,9 @@ public function execute(): void
'exit',
'ray',
])->not->toBeUsed();

$this->expectations[] = expect('App\Policies')
->classes()
->toHaveSuffix('Policy');
}
}

0 comments on commit 647de2f

Please sign in to comment.