From 974a2b258a5051cf8ee787bee6a63ae3320cb591 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 18 Nov 2014 16:42:56 +1300 Subject: [PATCH] test fixes --- tests/phpunit/CRM/Contact/Form/Search/Custom/GroupTest.php | 6 +++--- tests/phpunit/CRM/Report/Form/Contribute/DetailTest.php | 2 +- tests/phpunit/CRM/Report/Form/TestCaseTest.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/phpunit/CRM/Contact/Form/Search/Custom/GroupTest.php b/tests/phpunit/CRM/Contact/Form/Search/Custom/GroupTest.php index a46fe0ebca..29f7a0ef68 100644 --- a/tests/phpunit/CRM/Contact/Form/Search/Custom/GroupTest.php +++ b/tests/phpunit/CRM/Contact/Form/Search/Custom/GroupTest.php @@ -89,7 +89,7 @@ class CRM_Contact_Form_Search_Custom_GroupTest extends CiviUnitTestCase { public function testCount($fv, $count, $ids, $full) { $this->foreignKeyChecksOff(); - $this->quickCleanup(self::$_tablesToTruncate); + $this->quickCleanup($this->_tablesToTruncate); // echo "testCount\n"; $op = new PHPUnit_Extensions_Database_Operation_Insert(); @@ -120,7 +120,7 @@ class CRM_Contact_Form_Search_Custom_GroupTest extends CiviUnitTestCase { */ public function testAll($fv, $count, $ids, $full) { // Truncate affected tables - $this->quickCleanup(self::$_tablesToTruncate); + $this->quickCleanup($this->_tablesToTruncate); // echo "testAll\n"; $op = new PHPUnit_Extensions_Database_Operation_Insert(); @@ -151,7 +151,7 @@ class CRM_Contact_Form_Search_Custom_GroupTest extends CiviUnitTestCase { */ public function testContactIDs($fv, $count, $ids, $full) { // Truncate affected tables - $this->quickCleanup(self::$_tablesToTruncate); + $this->quickCleanup($this->_tablesToTruncate); // echo "testContactIDs\n"; $op = new PHPUnit_Extensions_Database_Operation_Insert(); diff --git a/tests/phpunit/CRM/Report/Form/Contribute/DetailTest.php b/tests/phpunit/CRM/Report/Form/Contribute/DetailTest.php index de869e8cfd..fffefb8a71 100644 --- a/tests/phpunit/CRM/Report/Form/Contribute/DetailTest.php +++ b/tests/phpunit/CRM/Report/Form/Contribute/DetailTest.php @@ -67,7 +67,7 @@ class CRM_Report_Form_Contribute_DetailTest extends CiviReportTestCase { function setUp() { parent::setUp(); $this->foreignKeyChecksOff(); - $this->quickCleanup(self::$_tablesToTruncate); + $this->quickCleanup($this->_tablesToTruncate); } function tearDown() { diff --git a/tests/phpunit/CRM/Report/Form/TestCaseTest.php b/tests/phpunit/CRM/Report/Form/TestCaseTest.php index ce7ee0ddfb..5aba3376bc 100644 --- a/tests/phpunit/CRM/Report/Form/TestCaseTest.php +++ b/tests/phpunit/CRM/Report/Form/TestCaseTest.php @@ -126,7 +126,7 @@ class CRM_Report_Form_TestCaseTest extends CiviReportTestCase { function setUp() { parent::setUp(); $this->foreignKeyChecksOff(); - $this->quickCleanup(self::$_tablesToTruncate); + $this->quickCleanup($this->_tablesToTruncate); } function tearDown() { -- 2.25.1