1 | <?php |
||
16 | class SecurityTest extends IntegrationTest |
||
17 | { |
||
18 | /** |
||
19 | * Tests if the kernel is bootable with security middleware. |
||
20 | * |
||
21 | * @return void |
||
22 | */ |
||
23 | public function testCanBootKernelWithSecurityMiddleware() |
||
37 | |||
38 | /** |
||
39 | * Tests if the kernel is not bootable without security settings (but with security middleware). |
||
40 | * |
||
41 | * @return void |
||
42 | */ |
||
43 | public function testCanNotBootKernelWithoutSecurity() |
||
55 | |||
56 | /** |
||
57 | * Tests if the kernel is bootable without security middleware and without security settings. |
||
58 | */ |
||
59 | public function testCanBootKernelWithoutSecurity() |
||
64 | |||
65 | /** |
||
66 | * Tests security middleware. |
||
67 | * |
||
68 | * @dataProvider provideTestData |
||
69 | * |
||
70 | * @param string $role |
||
71 | * @param bool $allowed |
||
72 | */ |
||
73 | public function testSecurityMiddleware(string $role, bool $allowed) |
||
97 | |||
98 | /** |
||
99 | * Gets test data for security middleware integration test. |
||
100 | * |
||
101 | * @return array |
||
102 | */ |
||
103 | public function provideTestData(): array |
||
111 | |||
112 | /** |
||
113 | * Security configuration. |
||
114 | */ |
||
115 | private function loadSecurityConfiguration() |
||
135 | } |
||
136 |