Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function testPatch(): void |
||
19 | { |
||
20 | $cf = $this->getFactory(); |
||
21 | |||
22 | $this->assertEquals(['value' => 'value!'], $cf->getConfig('scope')); |
||
23 | |||
24 | $cf->modify('scope', new Append('.', 'other', ['a' => 'b'])); |
||
25 | |||
26 | $this->assertSame([ |
||
27 | 'value' => 'value!', |
||
28 | 'other' => ['a' => 'b'] |
||
29 | ], $cf->getConfig('scope')); |
||
30 | |||
31 | $cf->modify('scope', new Append('other.', null, 'c')); |
||
32 | |||
33 | $this->assertSame([ |
||
34 | 'value' => 'value!', |
||
35 | 'other' => [ |
||
36 | 'a' => 'b', |
||
37 | 'c' |
||
38 | ] |
||
39 | ], $cf->getConfig('scope')); |
||
40 | } |
||
54 |