(dev/core#4188) Update APIv3 tests for phpunit9 compatibility
authorTim Otten <totten@civicrm.org>
Tue, 28 Mar 2023 23:42:21 +0000 (16:42 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 28 Mar 2023 23:42:21 +0000 (16:42 -0700)
commit5b632da958629de8e797962b145fbcad1498d3a6
tree7a9c6caf4ba97a940908a8b89ccbc3bae3b6f816
parent2a6aeadbb05250483000dcb923be458f6ab0c620
(dev/core#4188) Update APIv3 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/v3/CaseTest.php
tests/phpunit/api/v3/ContactTest.php
tests/phpunit/api/v3/JobTest.php
tests/phpunit/api/v3/RelationshipTest.php