mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 12:12:48 +01:00
Travis...
This commit is contained in:
parent
4973246aed
commit
fed9078c42
@ -46,7 +46,6 @@ before_script:
|
||||
- sed -i 's/APP_ENV=production/APP_ENV=development/g' .env
|
||||
- sed -i 's/APP_DEBUG=false/APP_DEBUG=true/g' .env
|
||||
- sed -i 's/REQUIRE_HTTPS=false/NINJA_DEV=true/g' .env
|
||||
- cat .env
|
||||
# create the database and user
|
||||
- mysql -u root -e "create database IF NOT EXISTS ninja;"
|
||||
- mysql -u root -e "GRANT ALL PRIVILEGES ON ninja.* To 'ninja'@'localhost' IDENTIFIED BY 'ninja'; FLUSH PRIVILEGES;"
|
||||
|
@ -62,12 +62,12 @@ class Utils
|
||||
return true;
|
||||
}
|
||||
|
||||
return isset($_ENV['NINJA_PROD']) && $_ENV['NINJA_PROD'] == 'true';
|
||||
return env('NINJA_PROD') == 'true';
|
||||
}
|
||||
|
||||
public static function isNinjaDev()
|
||||
{
|
||||
return isset($_ENV['NINJA_DEV']) && $_ENV['NINJA_DEV'] == 'true';
|
||||
return env('NINJA_DEV') == 'true';
|
||||
}
|
||||
|
||||
public static function requireHTTPS()
|
||||
|
@ -28,7 +28,7 @@ class OnlinePaymentCest
|
||||
if (strpos($I->grabFromCurrentUrl(), 'create') !== false) {
|
||||
$I->fillField(['name' =>'23_apiKey'], env('stripe_secret_key') ?: Fixtures::get('stripe_secret_key'));
|
||||
// Fails to load StripeJS causing "ReferenceError: Can't find variable: Stripe"
|
||||
//$I->fillField(['name' =>'publishable_key'], Fixtures::get('publishable_key'));
|
||||
//$I->fillField(['name' =>'stripe_publishable_key'], env('stripe_secret_key') ?: Fixtures::get('stripe_publishable_key'));
|
||||
$I->selectOption('#token_billing_type_id', 4);
|
||||
$I->click('Save');
|
||||
$I->see('Successfully created gateway');
|
||||
|
Loading…
Reference in New Issue
Block a user