marbobo's avatar
Level 12

SQLITE not throwing exception

Hi, is there a way for sqlite to throw exception like Illuminate\Database\QueryException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column ?? because on our mysql database it throwing this exception but when using sqlite on testing. it didn't throw anything.

0 likes
1 reply
Charizard's avatar

try adding this within your test:

$this->withoutExceptionHandling();
1 like

Please or to participate in this conversation.