sqlite could not find driver (SQL: PRAGMA foreign_keys = ON;)
-
Hi im trying to run the example laravel test, I have set the data base values as
<server name="DB_CONNECTION" value="sqlite"/>
<server name="DB_DATABASE" value="database/testing.sqlite"/>in phpunit.xml. I am getting the error
- Tests\Feature\ExampleTest::testBasicTest
Illuminate\Database\QueryException: could not find driver (SQL: PRAGMA foreign_keys = ON;)
I have enabled extensions sqlite3 and pdo_sqlite. Help would be appreciated
- Tests\Feature\ExampleTest::testBasicTest
-
I have also manual uncommented the lines regarding pdo slqite in the PHP.ini files
-
php info() shows that i have sqlite pdo enabled but the command php -i only shows mysql pdo.