| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 39 | public function testGetConfigValue() |
||
| 40 | { |
||
| 41 | $keys = [ |
||
| 42 | 'bool_true' => true, |
||
| 43 | 'bool_false' => false, |
||
| 44 | 'int_1' => 1, |
||
| 45 | 'int' => 14, |
||
| 46 | 'string_a' => "simple string", |
||
| 47 | 'array_a' => ['item1', 'item2'] |
||
| 48 | ]; |
||
| 49 | |||
| 50 | $this->activityManager->setConfiguration($keys); |
||
| 51 | |||
| 52 | foreach ($keys as $key => $val) { |
||
| 53 | $type = explode('_', $key); |
||
| 54 | $value = $this->activityManager->getConfigValue($key, $type[0]); |
||
| 55 | $this->assertEquals($value, $val, 'Key '.$key.' was not handled as expected'); |
||
| 56 | } |
||
| 57 | } |
||
| 58 | } |
||
| 59 |