From: Eileen McNaughton Date: Wed, 19 Mar 2014 00:42:07 +0000 (+1300) Subject: add call to delete objects X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8d5544c5f45d47610e43acac713307ba88c26a21;p=civicrm-core.git add call to delete objects --- 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(); } /**