Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Dec 17, 2023
1 parent e818d9c commit 4833ae2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/Common/CommonCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2022,7 +2022,12 @@ public function testInsertWithReturningPksEmptyValues()

$pkValues = $db->createCommand()->insertWithReturningPks('null_values', []);

$this->assertSame(['id' => 1], $pkValues);
$expected = match ($db->getDriverName()) {
'pgsql' => ['id' => 1],
default => ['id' => '1'],
};

$this->assertSame($expected, $pkValues);

$db->createCommand()->dropTable('null_values')->execute();
}
Expand Down

0 comments on commit 4833ae2

Please sign in to comment.