APIv4 Unit test fixes - ensure test records are cleaned up in non-transaction tests
authorColeman Watts <coleman@civicrm.org>
Wed, 11 May 2022 23:39:17 +0000 (19:39 -0400)
committerColeman Watts <coleman@civicrm.org>
Thu, 12 May 2022 02:33:15 +0000 (22:33 -0400)
commit25da5338ba1f3ac4274e049e5a0879bae502d379
tree8e08c9526d2d649c1fea87cac44c3424e29e9451
parent5376bfc6c619d2e5ebfa5af7fa4484c81cb73d75
APIv4 Unit test fixes - ensure test records are cleaned up in non-transaction tests

Use the new `createTestRecord` and `saveTestRecords` in non-transaction test classes
so the created records are automatically cleaned-up.
18 files changed:
tests/phpunit/api/v4/Action/AbstractActionFunctionTest.php
tests/phpunit/api/v4/Action/GetExtraFieldsTest.php
tests/phpunit/api/v4/Action/GetFromArrayTest.php
tests/phpunit/api/v4/Action/IndexTest.php
tests/phpunit/api/v4/Api4TestBase.php
tests/phpunit/api/v4/Custom/BasicCustomFieldTest.php
tests/phpunit/api/v4/Custom/CreateWithOptionGroupTest.php
tests/phpunit/api/v4/Custom/CustomContactRefTest.php
tests/phpunit/api/v4/Custom/CustomFieldAlterTest.php
tests/phpunit/api/v4/Custom/CustomValuePerformanceTest.php
tests/phpunit/api/v4/Custom/CustomValueTest.php
tests/phpunit/api/v4/Custom/ExtendFromIndividualTest.php
tests/phpunit/api/v4/Custom/PseudoconstantTest.php
tests/phpunit/api/v4/Custom/UpdateCustomValueTest.php
tests/phpunit/api/v4/Entity/EntityTest.php
tests/phpunit/api/v4/Entity/ExampleDataTest.php
tests/phpunit/api/v4/Service/Schema/SchemaMapperTest.php
tests/phpunit/api/v4/Spec/SpecGathererTest.php