Skip to content

Commit 4f6c795

Browse files
committed
Update mariadb exception messages
1 parent d1dc8d0 commit 4f6c795

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/ModelTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ public function testCreateExceptionUnknownColumn() : void
264264
{
265265
$this->model->allowedFields[] = 'not-exists';
266266
$this->expectException(\mysqli_sql_exception::class);
267-
$this->expectExceptionMessage("Unknown column 'not-exists' in 'field list'");
267+
$this->expectExceptionMessage("Unknown column 'not-exists' in 'INSERT INTO'");
268268
$this->model->create(['not-exists' => 'Value']);
269269
}
270270

@@ -355,7 +355,7 @@ public function testUpdateExceptionUnknownColumn() : void
355355
{
356356
$this->model->allowedFields[] = 'not-exists';
357357
$this->expectException(\mysqli_sql_exception::class);
358-
$this->expectExceptionMessage("Unknown column 'not-exists' in 'field list'");
358+
$this->expectExceptionMessage("Unknown column 'not-exists' in 'SET'");
359359
$this->model->update(1, ['not-exists' => 'Value']);
360360
}
361361

@@ -373,7 +373,7 @@ public function testReplaceExceptionUnknownColumn() : void
373373
{
374374
$this->model->allowedFields[] = 'not-exists';
375375
$this->expectException(\mysqli_sql_exception::class);
376-
$this->expectExceptionMessage("Unknown column 'not-exists' in 'field list'");
376+
$this->expectExceptionMessage("Unknown column 'not-exists' in 'INSERT INTO'");
377377
$this->model->replace(1, ['not-exists' => 'Value']);
378378
}
379379

0 commit comments

Comments
 (0)