@@ 58-65 (lines=8) @@ | ||
55 | * |
|
56 | * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
|
57 | */ |
|
58 | public function testConfigurationLoadThrowsExceptionUnlessCredentials() |
|
59 | { |
|
60 | $loader = new VMProApiExtension(); |
|
61 | $config = $this->getEmptyConfig(); |
|
62 | ||
63 | unset($config['vm_pro_api']['credentials']); |
|
64 | $loader->load($config, new ContainerBuilder()); |
|
65 | } |
|
66 | ||
67 | /** |
|
68 | * Assert whether an exception is thrown when required configuration |
|
@@ 73-80 (lines=8) @@ | ||
70 | * |
|
71 | * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
|
72 | */ |
|
73 | public function testConfigurationLoadThrowsExceptionUnlessUsername() |
|
74 | { |
|
75 | $loader = new VMProApiExtension(); |
|
76 | $config = $this->getEmptyConfig(); |
|
77 | ||
78 | unset($config['vm_pro_api']['credentials']['username']); |
|
79 | $loader->load($config, new ContainerBuilder()); |
|
80 | } |
|
81 | ||
82 | /** |
|
83 | * Assert whether an exception is thrown when required configuration |
|
@@ 88-95 (lines=8) @@ | ||
85 | * |
|
86 | * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
|
87 | */ |
|
88 | public function testConfigurationLoadThrowsExceptionUnlessPassword() |
|
89 | { |
|
90 | $loader = new VMProApiExtension(); |
|
91 | $config = $this->getEmptyConfig(); |
|
92 | ||
93 | unset($config['vm_pro_api']['credentials']['password']); |
|
94 | $loader->load($config, new ContainerBuilder()); |
|
95 | } |
|
96 | ||
97 | /** |
|
98 | * Assert whether the configuration keys and values are successfully |