Setup sqlite testing database in memory for Laravel

  • Posted on: 4 July 2019
  • By: stillfinder

Open your phpunit.xml file and add the following parameters to the <php> section:

<env name="DB_CONNECTION" value="sqlite"/>
<env name="DB_DATABASE" value=":memory:"/>