Total Complexity | 3 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | abstract class ConfigTest extends PluginTestCase |
||
10 | { |
||
11 | protected function setUp(): void |
||
12 | { |
||
13 | $this->registerConfig($this->getConfigName()); |
||
14 | } |
||
15 | |||
16 | /** |
||
17 | * @dataProvider configProvider() |
||
18 | * @param string $name |
||
19 | * @param $expectedValue |
||
20 | */ |
||
21 | public function testConfig(string $name, $expectedValue): void |
||
22 | { |
||
23 | $actualValue = $this->getConfigValue($name); |
||
24 | $this->assertEquals($expectedValue, $actualValue); |
||
25 | } |
||
26 | |||
27 | protected function getConfigValue(string $name) |
||
30 | } |
||
31 | |||
32 | abstract protected function getConfigName(): string; |
||
33 | } |
||
34 |