1 | <?php |
||
17 | class SecurityMiddlewareTest extends TestCase |
||
18 | { |
||
19 | /** |
||
20 | * Authorization checker mock. |
||
21 | */ |
||
22 | private $authorizationChecker; |
||
23 | |||
24 | /** |
||
25 | * Set up. |
||
26 | */ |
||
27 | public function setUp() |
||
31 | |||
32 | /** |
||
33 | * Tests the command is handled if access is granted. |
||
34 | */ |
||
35 | public function testAccessIsGranted() |
||
46 | |||
47 | /** |
||
48 | * Tests the command is not handled if access is denied and an AccessDenied exception is thrown. |
||
49 | */ |
||
50 | public function testAccessIsNotGranted() |
||
62 | } |
||
63 |