1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 22:26:43 +02:00

fixed tests

This commit is contained in:
David Grudl
2021-04-23 17:43:30 +02:00
parent 95c3f72a17
commit 3df64fc3b3
5 changed files with 8 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ Assert::same('SELECT', $e->getSql());
$e = Assert::exception(function () use ($conn) {
$conn->query('INSERT INTO products (product_id, title) VALUES (1, "New")');
}, Dibi\UniqueConstraintViolationException::class, "%a?%Duplicate entry '1' for key 'PRIMARY'", 1062);
}, Dibi\UniqueConstraintViolationException::class, "%a?%Duplicate entry '1' for key '%a?%PRIMARY'", 1062);
Assert::same("INSERT INTO products (product_id, title) VALUES (1, 'New')", $e->getSql());