From ff1c72f252b124fb513eceae0629c8e6deb0c8ef Mon Sep 17 00:00:00 2001 From: Jack Goh Date: Wed, 1 Aug 2018 17:59:00 +0800 Subject: [PATCH] update testing db credentials --- .env.testing | 4 ++-- .gitlab-ci.yml | 2 +- config/database.php | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.env.testing b/.env.testing index 417e9e3e..a24da1f2 100644 --- a/.env.testing +++ b/.env.testing @@ -1,11 +1,11 @@ -APP_ENV=test +APP_ENV=testing APP_DEBUG=true APP_KEY=w7VQXeA7U31DCdh1U39lpRz0iD7i0oCI APP_URL=http://localhost DB_HOST=mysql DB_PORT=3306 -DB_DATABASE=default +DB_DATABASE=phpunit DB_USERNAME=default DB_PASSWORD=secret diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eebce383..f5c00157 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,7 +6,7 @@ stages: - staging variables: - MYSQL_DATABASE: default + MYSQL_DATABASE: phpunit MYSQL_USER: default MYSQL_PASSWORD: secret MYSQL_ROOT_PASSWORD: root diff --git a/config/database.php b/config/database.php index 7ee80bab..b8f48c56 100644 --- a/config/database.php +++ b/config/database.php @@ -58,9 +58,9 @@ return [ 'driver' => 'mysql', 'host' => env('DB_HOST', 'localhost'), 'port' => env('DB_PORT', '3306'), - 'database' => 'forunittest', - 'username' => 'root', - 'password' => '', + 'database' => 'phpunit', + 'username' => 'default', + 'password' => 'secret', 'unix_socket' => env('DB_SOCKET', ''), 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci',