From 65aeebcd933195363d02947959ac310f96ad000c Mon Sep 17 00:00:00 2001
From: Rich Lott / Artful Robot <forums@artfulrobot.uk>
Date: Tue, 9 Mar 2021 16:15:09 +0000
Subject: [PATCH] move basetest to Civi\Payment\System singletons

---
 tests/phpunit/CRM/Stripe/BaseTest.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/phpunit/CRM/Stripe/BaseTest.php b/tests/phpunit/CRM/Stripe/BaseTest.php
index c7242fb3..ec683089 100644
--- a/tests/phpunit/CRM/Stripe/BaseTest.php
+++ b/tests/phpunit/CRM/Stripe/BaseTest.php
@@ -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();
   }
-- 
GitLab