| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 10 |
| 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 Set('value', 'x')); |
||
| 25 | |||
| 26 | $this->assertSame([ |
||
| 27 | 'value' => 'x', |
||
| 28 | ], $cf->getConfig('scope')); |
||
| 29 | |||
| 30 | $cf->modify('scope', new Set('value', 'y')); |
||
| 31 | |||
| 32 | $this->assertSame([ |
||
| 33 | 'value' => 'y', |
||
| 34 | ], $cf->getConfig('scope')); |
||
| 35 | } |
||
| 37 |