db cleanup/try phpunit with in-memory tests

This commit is contained in:
Nabeel Shahzad 2017-12-06 11:25:41 -06:00
parent 2f5b476afa
commit 3b53f884d1
2 changed files with 2 additions and 16 deletions

View File

@ -39,21 +39,7 @@ return [
'prefix' => '', 'prefix' => '',
], ],
'travis' => [ 'memory' => [
'driver' => 'mysql',
'host' => env('DB_HOST'),
'port' => env('DB_PORT'),
'database' => env('DB_DATABASE'),
'username' => env('DB_USERNAME'),
'password' => env('DB_PASSWORD'),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => true,
'engine' => null,
],
'testing' => [
'driver' => 'sqlite', 'driver' => 'sqlite',
'database' => ':memory:', 'database' => ':memory:',
'prefix' => '', 'prefix' => '',

View File

@ -23,7 +23,7 @@
<env name="APP_KEY" value="base64:ve66Z5Kt/zTN3p++0zOPu854PHfZkwJE5VuoFAlzHtI="/> <env name="APP_KEY" value="base64:ve66Z5Kt/zTN3p++0zOPu854PHfZkwJE5VuoFAlzHtI="/>
<env name="APP_DEBUG" value="true"/> <env name="APP_DEBUG" value="true"/>
<env name="APP_LOG_LEVEL" value="debug"/> <env name="APP_LOG_LEVEL" value="debug"/>
<env name="DB_CONNECTION" value="unittest"/> <env name="DB_CONNECTION" value="memory"/>
<env name="CACHE_DRIVER" value="array"/> <env name="CACHE_DRIVER" value="array"/>
<env name="SESSION_DRIVER" value="array"/> <env name="SESSION_DRIVER" value="array"/>
<env name="QUEUE_DRIVER" value="sync"/> <env name="QUEUE_DRIVER" value="sync"/>