Working on tests

This commit is contained in:
Hillel Coren 2017-05-11 17:46:07 +03:00
parent ea7935b2e9
commit 8575910285
3 changed files with 4 additions and 1 deletions

View File

@ -21,3 +21,4 @@ DB_DATABASE2=ninja2
MAIL_DRIVER=log
TRAVIS=true
API_SECRET=password
TEST_USERNAME=user@example.com

View File

@ -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

View File

@ -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);