File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments