File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
src/Service/DynamoDb/tests/Integration Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 77use AsyncAws \DynamoDb \DynamoDbClient ;
88use AsyncAws \DynamoDb \Enum \KeyType ;
99use AsyncAws \DynamoDb \Enum \ProjectionType ;
10+ use AsyncAws \DynamoDb \Enum \ReturnConsumedCapacity ;
1011use AsyncAws \DynamoDb \Input \BatchGetItemInput ;
1112use AsyncAws \DynamoDb \Input \BatchWriteItemInput ;
1213use AsyncAws \DynamoDb \Input \CreateTableInput ;
@@ -348,9 +349,11 @@ public function testPutItem(): void
348349 'Subject ' => ['S ' => 'How do I update multiple items? ' ],
349350 'LastPostedBy ' => ['S ' => 'fred@example.com ' ],
350351 ],
352+ 'ReturnConsumedCapacity ' => ReturnConsumedCapacity::INDEXES ,
351353 ]);
352354
353355 $ result = $ client ->putItem ($ input );
356+ self ::assertNotNull ($ result ->getConsumedCapacity ());
354357 self ::assertSame (1.0 , $ result ->getConsumedCapacity ()->getCapacityUnits ());
355358 }
356359
You can’t perform that action at this time.
0 commit comments