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 7
7
use AsyncAws \DynamoDb \DynamoDbClient ;
8
8
use AsyncAws \DynamoDb \Enum \KeyType ;
9
9
use AsyncAws \DynamoDb \Enum \ProjectionType ;
10
+ use AsyncAws \DynamoDb \Enum \ReturnConsumedCapacity ;
10
11
use AsyncAws \DynamoDb \Input \BatchGetItemInput ;
11
12
use AsyncAws \DynamoDb \Input \BatchWriteItemInput ;
12
13
use AsyncAws \DynamoDb \Input \CreateTableInput ;
@@ -348,9 +349,11 @@ public function testPutItem(): void
348
349
'Subject ' => ['S ' => 'How do I update multiple items? ' ],
349
350
'LastPostedBy ' => ['S ' => 'fred@example.com ' ],
350
351
],
352
+ 'ReturnConsumedCapacity ' => ReturnConsumedCapacity::INDEXES ,
351
353
]);
352
354
353
355
$ result = $ client ->putItem ($ input );
356
+ self ::assertNotNull ($ result ->getConsumedCapacity ());
354
357
self ::assertSame (1.0 , $ result ->getConsumedCapacity ()->getCapacityUnits ());
355
358
}
356
359
You can’t perform that action at this time.
0 commit comments