Skip to content

Commit ef71054

Browse files
authored
Add integration tests on DynamoDbClient::tableNotExsits (#343)
1 parent f2e7b08 commit ef71054

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/Integration/DynamoDbClientTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,18 @@ public function testTableExists(): void
289289
self::assertFalse($client->tableExists(['TableName' => 'does-not-exists'])->isSuccess());
290290
}
291291

292+
public function testTableNotExists(): void
293+
{
294+
$client = $this->getClient();
295+
296+
$input = new DescribeTableInput([
297+
'TableName' => $this->tableName,
298+
]);
299+
300+
self::assertFalse($client->tableNotExists($input)->isSuccess());
301+
self::assertTrue($client->tableNotExists(['TableName' => 'does-not-exists'])->isSuccess());
302+
}
303+
292304
private function getClient(): DynamoDbClient
293305
{
294306
if ($this->client instanceof DynamoDbClient) {

0 commit comments

Comments
 (0)