(dev/core#4188) Update APIv4 tests for phpunit9 compatibility
authorTim Otten <totten@civicrm.org>
Tue, 28 Mar 2023 23:02:01 +0000 (16:02 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 28 Mar 2023 23:02:01 +0000 (16:02 -0700)
commitfd1c688df7cb14cb41d8034e948ab8ed20c0e939
tree6375ea92b01eadd8297bc356bb572db27a310f01
parent2a6aeadbb05250483000dcb923be458f6ab0c620
(dev/core#4188) Update APIv4 tests for phpunit9 compatibility

These tests failed on `phpunit9` because upstream swapped out around the semantics of `assertContains()`.

The specific issue is whether an array like `["1","2","3"]` contains the value `2`.

* `assertContains()` in phpunit8 says yes.
* `assertContains()` in phpunit9 says no.
* `assertContainsEquals()` in both phpunit8+phpunit9 says yes.
tests/phpunit/api/v4/Action/ContactDuplicatesTest.php
tests/phpunit/api/v4/Custom/BasicCustomFieldTest.php