Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | public function testAccessIsGranted() |
||
36 | { |
||
37 | $this->authorizationChecker->shouldReceive('isGranted')->andReturn(true); |
||
38 | $middleware = new SecurityMiddleware($this->authorizationChecker); |
||
39 | $handled = false; |
||
40 | $middleware->execute(new FakeCommand(), function () use(&$handled) { |
||
41 | $handled = true; |
||
42 | }); |
||
43 | |||
44 | $this->assertTrue($handled); |
||
45 | } |
||
46 | |||
63 |