mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Working on tests
This commit is contained in:
parent
ea7935b2e9
commit
8575910285
@ -21,3 +21,4 @@ DB_DATABASE2=ninja2
|
||||
MAIL_DRIVER=log
|
||||
TRAVIS=true
|
||||
API_SECRET=password
|
||||
TEST_USERNAME=user@example.com
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user