@@ 13-21 (lines=9) @@ | ||
10 | ||
11 | class LoevgaardDandomainAltapayExtensionTest extends TestCase |
|
12 | { |
|
13 | public function testThrowsExceptionUnlessAltapayUsernameSet() |
|
14 | { |
|
15 | $this->expectException(InvalidConfigurationException::class); |
|
16 | ||
17 | $loader = new LoevgaardDandomainAltapayExtension(); |
|
18 | $config = $this->getEmptyConfig(); |
|
19 | unset($config['altapay_username']); |
|
20 | $loader->load([$config], new ContainerBuilder()); |
|
21 | } |
|
22 | ||
23 | public function testThrowsExceptionUnlessAltapayPasswordSet() |
|
24 | { |
|
@@ 23-31 (lines=9) @@ | ||
20 | $loader->load([$config], new ContainerBuilder()); |
|
21 | } |
|
22 | ||
23 | public function testThrowsExceptionUnlessAltapayPasswordSet() |
|
24 | { |
|
25 | $this->expectException(InvalidConfigurationException::class); |
|
26 | ||
27 | $loader = new LoevgaardDandomainAltapayExtension(); |
|
28 | $config = $this->getEmptyConfig(); |
|
29 | unset($config['altapay_password']); |
|
30 | $loader->load([$config], new ContainerBuilder()); |
|
31 | } |
|
32 | ||
33 | public function testThrowsExceptionUnlessSharedKey1Set() |
|
34 | { |
|
@@ 33-41 (lines=9) @@ | ||
30 | $loader->load([$config], new ContainerBuilder()); |
|
31 | } |
|
32 | ||
33 | public function testThrowsExceptionUnlessSharedKey1Set() |
|
34 | { |
|
35 | $this->expectException(InvalidConfigurationException::class); |
|
36 | ||
37 | $loader = new LoevgaardDandomainAltapayExtension(); |
|
38 | $config = $this->getEmptyConfig(); |
|
39 | unset($config['shared_key_1']); |
|
40 | $loader->load([$config], new ContainerBuilder()); |
|
41 | } |
|
42 | ||
43 | public function testThrowsExceptionUnlessSharedKey2Set() |
|
44 | { |
|
@@ 43-51 (lines=9) @@ | ||
40 | $loader->load([$config], new ContainerBuilder()); |
|
41 | } |
|
42 | ||
43 | public function testThrowsExceptionUnlessSharedKey2Set() |
|
44 | { |
|
45 | $this->expectException(InvalidConfigurationException::class); |
|
46 | ||
47 | $loader = new LoevgaardDandomainAltapayExtension(); |
|
48 | $config = $this->getEmptyConfig(); |
|
49 | unset($config['shared_key_2']); |
|
50 | $loader->load([$config], new ContainerBuilder()); |
|
51 | } |
|
52 | ||
53 | public function testThrowsExceptionUnlessAltapayIpsSet() |
|
54 | { |
|
@@ 53-61 (lines=9) @@ | ||
50 | $loader->load([$config], new ContainerBuilder()); |
|
51 | } |
|
52 | ||
53 | public function testThrowsExceptionUnlessAltapayIpsSet() |
|
54 | { |
|
55 | $this->expectException(InvalidConfigurationException::class); |
|
56 | ||
57 | $loader = new LoevgaardDandomainAltapayExtension(); |
|
58 | $config = $this->getEmptyConfig(); |
|
59 | unset($config['altapay_ips']); |
|
60 | $loader->load([$config], new ContainerBuilder()); |
|
61 | } |
|
62 | ||
63 | public function testThrowsExceptionUnlessDefaultSettingsSet() |
|
64 | { |
|
@@ 63-71 (lines=9) @@ | ||
60 | $loader->load([$config], new ContainerBuilder()); |
|
61 | } |
|
62 | ||
63 | public function testThrowsExceptionUnlessDefaultSettingsSet() |
|
64 | { |
|
65 | $this->expectException(InvalidConfigurationException::class); |
|
66 | ||
67 | $loader = new LoevgaardDandomainAltapayExtension(); |
|
68 | $config = $this->getEmptyConfig(); |
|
69 | unset($config['default_settings']); |
|
70 | $loader->load([$config], new ContainerBuilder()); |
|
71 | } |
|
72 | ||
73 | public function testGettersSetters() |
|
74 | { |