Test cleanup fix
authoreileen <emcnaughton@wikimedia.org>
Wed, 23 Sep 2020 18:50:37 +0000 (06:50 +1200)
committereileen <emcnaughton@wikimedia.org>
Wed, 23 Sep 2020 18:58:30 +0000 (06:58 +1200)
tests/phpunit/api/v3/SyntaxConformanceTest.php

index ed7e6a5ae1fdde2ef11c71f1587c1eebab31c800..38828c4257166a266ff0131b1bbe7d7f12ce541e 100644 (file)
@@ -1099,10 +1099,9 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
     $entities = array_keys($entities['values']);
     $totalEntities = count($entities);
     if ($totalEntities < 3) {
-      $ids = [];
       for ($i = 0; $i < 3 - $totalEntities; $i++) {
         $baoObj = CRM_Core_DAO::createTestObject($baoString, ['currency' => 'USD']);
-        $ids[] = $baoObj->id;
+        $this->deletableTestObjects[$baoString][] = $baoObj->id;
       }
       $totalEntities = 3;
     }