| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function testToArray() |
||
| 15 | { |
||
| 16 | $client = DynamoDbClientFactory::factory(); |
||
| 17 | $marshaler = MarshalerFactory::factory(); |
||
| 18 | $primaryKey = [ |
||
| 19 | 'name' => [AttributeTypes::STRING, KeyTypes::HASH], |
||
| 20 | 'date' => [AttributeTypes::NUMBER, KeyTypes::RANGE], |
||
| 21 | ]; |
||
| 22 | $updateData = [ |
||
| 23 | 'something' => 'wicked', |
||
| 24 | 'this' => 'way comes' |
||
| 25 | ]; |
||
| 26 | $operation = new UpdateItemOperation($client, $marshaler, 'test', $primaryKey, $updateData); |
||
| 27 | $this->assertSame('SET something = :something and this = :this', $operation->toArray()['UpdateExpression']); |
||
| 28 | } |
||
| 30 |