@@ 53-63 (lines=11) @@ | ||
50 | /** |
|
51 | * @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
|
52 | */ |
|
53 | public function testLoadWhenHostIsRequiredAndCannotBeEmpty() |
|
54 | { |
|
55 | $container = $this->createContainer(); |
|
56 | $loader = $this->createLoader(); |
|
57 | ||
58 | $config = array( |
|
59 | 'swp_bridge.api.host' => '', |
|
60 | ); |
|
61 | ||
62 | $loader->load(array($config), $container); |
|
63 | } |
|
64 | ||
65 | /** |
|
66 | * @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
|
@@ 68-78 (lines=11) @@ | ||
65 | /** |
|
66 | * @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
|
67 | */ |
|
68 | public function testLoadWhenClientIdIsRequiredAndCannotBeEmpty() |
|
69 | { |
|
70 | $container = $this->createContainer(); |
|
71 | $loader = $this->createLoader(); |
|
72 | ||
73 | $config = array( |
|
74 | 'swp_bridge.auth.client_id' => '', |
|
75 | ); |
|
76 | ||
77 | $loader->load(array($config), $container); |
|
78 | } |
|
79 | ||
80 | /** |
|
81 | * @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
|
@@ 83-93 (lines=11) @@ | ||
80 | /** |
|
81 | * @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
|
82 | */ |
|
83 | public function testLoadWhenUsernameIsRequiredAndCannotBeEmpty() |
|
84 | { |
|
85 | $container = $this->createContainer(); |
|
86 | $loader = $this->createLoader(); |
|
87 | ||
88 | $config = array( |
|
89 | 'swp_bridge.auth.username' => '', |
|
90 | ); |
|
91 | ||
92 | $loader->load(array($config), $container); |
|
93 | } |
|
94 | ||
95 | /** |
|
96 | * @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
|
@@ 98-108 (lines=11) @@ | ||
95 | /** |
|
96 | * @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
|
97 | */ |
|
98 | public function testLoadWhenPasswordIsRequiredAndCannotBeEmpty() |
|
99 | { |
|
100 | $container = $this->createContainer(); |
|
101 | $loader = $this->createLoader(); |
|
102 | ||
103 | $config = array( |
|
104 | 'swp_bridge.auth.password' => '', |
|
105 | ); |
|
106 | ||
107 | $loader->load(array($config), $container); |
|
108 | } |
|
109 | ||
110 | protected function createLoader() |
|
111 | { |