Total Complexity | 3 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
18 | class SaasProviderExtensionTest extends TestCase |
||
19 | { |
||
20 | /** @var ContainerBuilder */ |
||
21 | protected $configuration; |
||
22 | |||
23 | protected function tearDown(): void |
||
24 | { |
||
25 | $this->configuration = null; |
||
26 | } |
||
27 | |||
28 | public function testUserLoadUnlessClientEntitySet() |
||
29 | { |
||
30 | $loader = new SaasProviderExtension(); |
||
31 | $config = $this->getEmptyConfig(); |
||
32 | unset($config['client_entity']); |
||
33 | |||
34 | $this->expectException(InvalidConfigurationException::class); |
||
35 | $loader->load(array($config), new ContainerBuilder()); |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * getEmptyConfig. |
||
40 | * |
||
41 | * @return array |
||
42 | */ |
||
43 | protected function getEmptyConfig() |
||
51 | } |
||
52 | } |
||
53 |