From 1b2de78e187d2fcdf540b12de05ce30ac5848603 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Mon, 7 Sep 2020 09:47:32 +1000 Subject: [PATCH] [NFC] Aim to reduce memory usage in create single value alter test by removing xdebug items from comparaison --- tests/phpunit/api/v3/SyntaxConformanceTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/phpunit/api/v3/SyntaxConformanceTest.php b/tests/phpunit/api/v3/SyntaxConformanceTest.php index 0f0e4003ac..ed7e6a5ae1 100644 --- a/tests/phpunit/api/v3/SyntaxConformanceTest.php +++ b/tests/phpunit/api/v3/SyntaxConformanceTest.php @@ -1511,6 +1511,8 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase { foreach ($floatFields as $floatField) { $checkEntity[$floatField] = rtrim($checkEntity[$floatField], "0"); } + unset($entity['xdebug']); + unset($checkEntity['xdebug']); $this->assertAPIArrayComparison($entity, $checkEntity, [], "checking if $fieldName was correctly updated\n" . print_r([ 'update-params' => $updateParams, 'update-result' => $update, -- 2.25.1