File tree Expand file tree Collapse file tree 1 file changed +24
-3
lines changed
Expand file tree Collapse file tree 1 file changed +24
-3
lines changed Original file line number Diff line number Diff line change 11<?php
22
3- arch ('No debugging statements are left in our code. ' )
4- ->expect (['dd ' , 'dump ' , 'ray ' ])
5- ->not ->toBeUsed ();
3+ arch ('All files in the casts directory extend `CastsAttributes`. ' )
4+ ->expect ('App\Casts ' )
5+ ->toExtend ('Illuminate\Contracts\Database\Eloquent\CastsAttributes ' );
6+
7+ arch ('All files in the casts directory have suffix `Cast`. ' )
8+ ->expect ('App\Casts ' )
9+ ->toHaveSuffix ('Cast ' );
10+
11+ arch ('All files in the observers directory have suffix `Observer`. ' )
12+ ->expect ('App\Observers ' )
13+ ->toHaveSuffix ('Observer ' );
14+
15+ arch ('All files in the policies directory have suffix `Policy`. ' )
16+ ->expect ('App\Policies ' )
17+ ->toHaveSuffix ('Policy ' );
18+
19+ arch ('All files in the services directory have suffix `Service`. ' )
20+ ->expect ('App\Services ' )
21+ ->toHaveSuffix ('Service ' );
22+
23+ arch ('ensures `env()` is only used in config files ' )
24+ ->expect ('env ' )
25+ ->not ->toBeUsed ()
26+ ->ignoring ('config ' );
You can’t perform that action at this time.
0 commit comments