| @@ 18-30 (lines=13) @@ | ||
| 15 | /** |
|
| 16 | * @group unit |
|
| 17 | */ |
|
| 18 | public function testAppendSingleValue(): void |
|
| 19 | { |
|
| 20 | $processor = new AppendProcessor('field1', 'item2'); |
|
| 21 | ||
| 22 | $expected = [ |
|
| 23 | 'append' => [ |
|
| 24 | 'field' => 'field1', |
|
| 25 | 'value' => 'item2', |
|
| 26 | ], |
|
| 27 | ]; |
|
| 28 | ||
| 29 | $this->assertEquals($expected, $processor->toArray()); |
|
| 30 | } |
|
| 31 | ||
| 32 | /** |
|
| 33 | * @group unit |
|
| @@ 18-30 (lines=13) @@ | ||
| 15 | /** |
|
| 16 | * @group unit |
|
| 17 | */ |
|
| 18 | public function testSet(): void |
|
| 19 | { |
|
| 20 | $processor = new SetProcessor('field1', 582.1); |
|
| 21 | ||
| 22 | $expected = [ |
|
| 23 | 'set' => [ |
|
| 24 | 'field' => 'field1', |
|
| 25 | 'value' => 582.1, |
|
| 26 | ], |
|
| 27 | ]; |
|
| 28 | ||
| 29 | $this->assertEquals($expected, $processor->toArray()); |
|
| 30 | } |
|
| 31 | ||
| 32 | /** |
|
| 33 | * @group unit |
|