From 8d5544c5f45d47610e43acac713307ba88c26a21 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 19 Mar 2014 13:42:07 +1300 Subject: [PATCH] add call to delete objects --- tests/phpunit/api/v3/SyntaxConformanceTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/api/v3/SyntaxConformanceTest.php b/tests/phpunit/api/v3/SyntaxConformanceTest.php index ed0cb4d96b..f34473d0e5 100644 --- a/tests/phpunit/api/v3/SyntaxConformanceTest.php +++ b/tests/phpunit/api/v3/SyntaxConformanceTest.php @@ -550,7 +550,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase { // make 30 test items -- 30 > 25 (the default limit) for ($i = 0; $i < 30; $i++) { - CRM_Core_DAO::createTestObject($baoString, array('currency' => 'USD')); + $baoObj = CRM_Core_DAO::createTestObject($baoString, array('currency' => 'USD')); } // each case is array(0 => $inputtedApiOptions, 1 => $expectedResultCount) @@ -564,6 +564,8 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase { $this->checkLimitAgainstExpected($entityName, array('option.limit' => $case[0]['options']['limit']), $case[1], $case[2]); } } + $baoObj->deleteTestObjects($baoString); + $baoObj->free(); } /** -- 2.25.1