Skip to content

Commit

Permalink
Merge pull request #1292 from olivernybroe/policy-suffix
Browse files Browse the repository at this point in the history
Add Policy suffix to policies
  • Loading branch information
nunomaduro authored Oct 11, 2024
2 parents 42d8981 + 647de2f commit 3f65af9
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 3f65af9

Please sign in to comment.