Skip to content

Commit

Permalink
Add architecture test
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Sep 29, 2024
1 parent f900016 commit b3bc9de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/pest/Architecture/ArchitectureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
* Tests the architecture of the plugin.
*/

test('Source code does not contain any “dump or die” statements')
test('Source code does not contain any `Craft::dd` statements')
->expect(Craft::class)
->not->toUse(['dd']);

test('Source code does not contain any `var_dump` or `die` statements')
->expect(['var_dump', 'die'])
->not->toBeUsed();

0 comments on commit b3bc9de

Please sign in to comment.