From 3b53f884d165f9f7ec82d18d31f89b7fb2a12d94 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Wed, 6 Dec 2017 11:25:41 -0600 Subject: [PATCH] db cleanup/try phpunit with in-memory tests --- config/database.php | 16 +--------------- phpunit.xml | 2 +- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/config/database.php b/config/database.php index 46f1085e..4a084734 100755 --- a/config/database.php +++ b/config/database.php @@ -39,21 +39,7 @@ return [ 'prefix' => '', ], - 'travis' => [ - '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' => [ + 'memory' => [ 'driver' => 'sqlite', 'database' => ':memory:', 'prefix' => '', diff --git a/phpunit.xml b/phpunit.xml index 1baae029..f3922227 100755 --- a/phpunit.xml +++ b/phpunit.xml @@ -23,7 +23,7 @@ - +