From 208f71f02b5758f04a09a263f09f74654088aa44 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 22 Dec 2014 12:34:34 -0800 Subject: [PATCH] api_v3_PaymentProcessorTest - Change quickCleanup() to useTransaction() --- tests/phpunit/api/v3/PaymentProcessorTest.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/tests/phpunit/api/v3/PaymentProcessorTest.php b/tests/phpunit/api/v3/PaymentProcessorTest.php index d819e8647d..0c950174f6 100644 --- a/tests/phpunit/api/v3/PaymentProcessorTest.php +++ b/tests/phpunit/api/v3/PaymentProcessorTest.php @@ -49,6 +49,7 @@ class api_v3_PaymentProcessorTest extends CiviUnitTestCase { function setUp() { parent::setUp(); + $this->useTransaction(TRUE); // Create dummy processor $params = array( 'name' => 'API_Test_PP_Type', @@ -68,15 +69,6 @@ class api_v3_PaymentProcessorTest extends CiviUnitTestCase { ); } - function tearDown() { - - $tablesToTruncate = array( - 'civicrm_payment_processor', - 'civicrm_payment_processor_type', - ); - $this->quickCleanup($tablesToTruncate); - } - ///////////////// civicrm_payment_processor_add methods /** -- 2.25.1