We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
7 | class CrudPanelAccessTest extends BaseCrudPanelTest |
||
8 | { |
||
9 | private $unknownPermission = 'unknownPermission'; |
||
10 | |||
11 | private $defaultAccessList = [ |
||
12 | 'list', |
||
13 | 'create', |
||
14 | 'update', |
||
15 | 'delete', |
||
16 | ]; |
||
17 | |||
18 | private $fullAccessList = [ |
||
19 | 'list', |
||
20 | 'create', |
||
21 | 'update', |
||
22 | 'delete', |
||
23 | 'revisions', |
||
24 | 'reorder', |
||
25 | 'show', |
||
26 | 'details_row', |
||
27 | ]; |
||
28 | |||
29 | public function testDefaultAccess() |
||
33 | |||
34 | public function testHasAccess() |
||
44 | |||
45 | public function testAllowAccess() |
||
53 | |||
54 | public function testAllowAccessToUnknownPermission() |
||
60 | |||
61 | public function testDenyAccess() |
||
70 | |||
71 | public function testDenyAccessToUnknownPermission() |
||
78 | |||
79 | public function testHasAccessToAny() |
||
83 | |||
84 | public function testHasAccessToAnyDenied() |
||
88 | |||
89 | public function testHasAccessToAll() |
||
93 | |||
94 | public function testHasAccessToAllDenied() |
||
98 | |||
99 | public function testHasAccessOrFail() |
||
105 | |||
106 | public function testHasAccessOrFailDenied() |
||
112 | } |
||
113 |
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.