diff --git a/.env.travis b/.env.travis index 76b578295e0d..c644c4f63898 100644 --- a/.env.travis +++ b/.env.travis @@ -21,3 +21,4 @@ DB_DATABASE2=ninja2 MAIL_DRIVER=log TRAVIS=true API_SECRET=password +TEST_USERNAME=user@example.com diff --git a/.travis.yml b/.travis.yml index d1f2b568c9fe..fc9cce5c7aa4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -70,6 +70,8 @@ before_script: - php artisan ninja:create-test-data 4 true - php artisan db:seed --no-interaction --class=UserTableSeeder # development seed - sed -i 's/DB_TYPE=db-ninja-1/DB_TYPE=db-ninja-2/g' .env + - sed -i 's/user@example.com/user2@example.com/g' .env + - php artisan db:seed --no-interaction --class=UserTableSeeder # development seed script: - php ./vendor/codeception/codeception/codecept run --debug acceptance APICest.php diff --git a/app/Constants.php b/app/Constants.php index 12f112697cc0..40ada1199739 100644 --- a/app/Constants.php +++ b/app/Constants.php @@ -362,7 +362,7 @@ if (! defined('APP_NAME')) { define('USER_TYPE_CLOUD_HOST', 'CLOUD_HOST'); define('NEW_VERSION_AVAILABLE', 'NEW_VERSION_AVAILABLE'); - define('TEST_USERNAME', 'user@example.com'); + define('TEST_USERNAME', env('TEST_USERNAME', 'user@example.com')); define('TEST_PASSWORD', 'password'); define('API_SECRET', 'API_SECRET'); define('DEFAULT_API_PAGE_SIZE', 15);