Fix for tests

This commit is contained in:
Hillel Coren 2016-06-20 22:26:48 +03:00
parent 12b754dc32
commit b06b437e27
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ class WePayPaymentDriver extends BasePaymentDriver
];
}
public function startPurchase($input, $sourceId)
public function startPurchase($input = false, $sourceId = false)
{
$data = parent::startPurchase($input, $sourceId);

View File

@ -23,7 +23,7 @@ class OnlinePaymentCest
// set gateway info
$I->wantTo('create a gateway');
$I->amOnPage('/gateways/create/0');
$I->amOnPage('/gateways/create?other_providers=true');
$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"