From b06b437e277739c6f9fa33e8ecf17173d2c6aba9 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 20 Jun 2016 22:26:48 +0300 Subject: [PATCH] Fix for tests --- app/Ninja/PaymentDrivers/WePayPaymentDriver.php | 2 +- tests/acceptance/OnlinePaymentCest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Ninja/PaymentDrivers/WePayPaymentDriver.php b/app/Ninja/PaymentDrivers/WePayPaymentDriver.php index 05561fb69d18..4c5d06478b4f 100644 --- a/app/Ninja/PaymentDrivers/WePayPaymentDriver.php +++ b/app/Ninja/PaymentDrivers/WePayPaymentDriver.php @@ -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); diff --git a/tests/acceptance/OnlinePaymentCest.php b/tests/acceptance/OnlinePaymentCest.php index 1d7d563094eb..5a2d1380ad50 100644 --- a/tests/acceptance/OnlinePaymentCest.php +++ b/tests/acceptance/OnlinePaymentCest.php @@ -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"