| Total Complexity | 1 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class SetTest extends BaseTest |
||
| 17 | { |
||
| 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 |