#Set DB_CONNECTION to use sqlite in-memory database when testing
- Open `phpunit.xml' file in the current project
- Add the following environment variables to the appropriate section
<env name="DB_CONNECTION" value="sqlite">
<env name="DB_DATABASE" value=":memory:">
- in
config\database.php
file, change the defaultsqlite
connection to
'connections' => [