| Total Complexity | 3 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class SensioSecurityExpressionVoterPassTest extends TestCase |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var ContainerBuilder |
||
| 25 | */ |
||
| 26 | private $container; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var SensioSecurityExpressionVoterPass |
||
| 30 | */ |
||
| 31 | private $pass; |
||
| 32 | |||
| 33 | public function setUp() |
||
| 34 | { |
||
| 35 | $this->container = new ContainerBuilder(); |
||
| 36 | $this->container->register(SensioSecurityExpressionVoter::class); |
||
| 37 | $this->pass = new SensioSecurityExpressionVoterPass(); |
||
| 38 | } |
||
| 39 | |||
| 40 | public function testProcessWithoutExtraBundle() |
||
| 41 | { |
||
| 42 | $this->pass->process($this->container); |
||
| 43 | |||
| 44 | $this->assertFalse($this->container->hasDefinition(SensioSecurityExpressionVoter::class)); |
||
| 45 | } |
||
| 46 | |||
| 47 | public function testProcessWithExtraBundle() |
||
| 55 | } |
||
| 56 | } |
||
| 57 |