@@ 36-43 (lines=8) @@ | ||
33 | * |
|
34 | * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
|
35 | */ |
|
36 | public function testConfigurationLoadThrowsExceptionUnlessUsername() |
|
37 | { |
|
38 | $loader = new VMProApiExtension(); |
|
39 | $config = $this->getEmptyConfig(); |
|
40 | ||
41 | unset($config['vm_pro_api']['credentials']['username']); |
|
42 | $loader->load($config, new ContainerBuilder()); |
|
43 | } |
|
44 | ||
45 | /** |
|
46 | * Assert whether an exception is thrown when required configuration |
|
@@ 51-58 (lines=8) @@ | ||
48 | * |
|
49 | * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
|
50 | */ |
|
51 | public function testConfigurationLoadThrowsExceptionUnlessPassword() |
|
52 | { |
|
53 | $loader = new VMProApiExtension(); |
|
54 | $config = $this->getEmptyConfig(); |
|
55 | ||
56 | unset($config['vm_pro_api']['credentials']['password']); |
|
57 | $loader->load($config, new ContainerBuilder()); |
|
58 | } |
|
59 | ||
60 | /** |
|
61 | * Assert whether the configuration keys and values are successfully |