Skip to content
Snippets Groups Projects
Commit 65aeebcd authored by Rich's avatar Rich Committed by mattwire
Browse files

move basetest to Civi\Payment\System singletons

parent 163c1fd6
Branches
Tags
1 merge request!1526.6 to master
......@@ -99,7 +99,7 @@ class CRM_Stripe_BaseTest extends \PHPUnit\Framework\TestCase implements Headles
$processor = array_pop($result['values']);
$this->paymentProcessor = $processor;
$this->paymentProcessorID = $result['id'];
$this->paymentObject = new CRM_Core_Payment_Stripe('test' /*mode*/, $this->paymentProcessor);
$this->paymentObject = \Civi\Payment\System::singleton()->getById($result['id']);
// Set params, creates stripeClient
$this->paymentObject->setAPIParams();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment