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