mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 12:12:48 +01:00
Fixing test payment in Travis
This commit is contained in:
parent
5b743355fe
commit
7e6d137504
@ -40,11 +40,11 @@ before_script:
|
||||
- mysql -u root -e 'SET @@GLOBAL.wait_timeout=28800;'
|
||||
# copy configuration files
|
||||
- cp .env.example .env
|
||||
- sed -i 's/REQUIRE_HTTPS=false/NINJA_DEV=true/g' .env
|
||||
- cp tests/_bootstrap.php.default tests/_bootstrap.php
|
||||
- php artisan key:generate --no-interaction
|
||||
- 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
|
||||
# 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;"
|
||||
|
@ -200,10 +200,10 @@ class AccountGatewayController extends BaseController
|
||||
if ($gatewayId == GATEWAY_DWOLLA) {
|
||||
$optional = array_merge($optional, ['key', 'secret']);
|
||||
} elseif ($gatewayId == GATEWAY_STRIPE) {
|
||||
if (Utils::isNinjaDev() && Input::get('23_apiKey') == env('TEST_API_KEY')) {
|
||||
if (Utils::isNinjaDev()) {
|
||||
// do nothing - we're unable to acceptance test with StripeJS
|
||||
} else {
|
||||
//$rules['publishable_key'] = 'required';
|
||||
$rules['publishable_key'] = 'required';
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user