1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-28 08:19:48 +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

@@ -31,7 +31,7 @@ Assert::same("INSERT INTO products (product_id, title) VALUES (1, 'New')", $e->g
$e = Assert::exception(function () use ($conn) {
$conn->query('INSERT INTO products (title) VALUES (NULL)');
}, Dibi\NotNullConstraintViolationException::class, '%a?%null value in column "title" violates not-null constraint%A?%', '23502');
}, Dibi\NotNullConstraintViolationException::class, '%a?%null value in column "title"%a%violates not-null constraint%A?%', '23502');
Assert::same('INSERT INTO products (title) VALUES (NULL)', $e->getSql());