Fixing test payment in Travis
This commit is contained in:
parent
5b743355fe
commit
7e6d137504
2 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Reference in a new issue