Convert customQueryTest to test the BAO_Contact_Query
authoreileen <emcnaughton@wikimedia.org>
Mon, 4 Nov 2019 02:42:03 +0000 (15:42 +1300)
committereileen <emcnaughton@wikimedia.org>
Mon, 4 Nov 2019 05:13:40 +0000 (18:13 +1300)
commitcc3f334a6b9ae324d34149fd51f846a9c635ff1d
treebe00b539a7e310ca36fbb8d05d83a12c6707ecdc
parentb23b546c6c43108c5040044b2e87734c6d60e99c
Convert customQueryTest to test the BAO_Contact_Query

While I understand the theory of unit tests is to test low level chunks of code that relates in many
ways to WELL-DESIGNED chunks. In the case of the query object it is more important to
ensure the results experienced by the user are correct - this converts the existing test
to a more end-to-end test on the CRM_Contact_BAO_Query object acting correctly.
tests/phpunit/CRM/Core/BAO/CustomQueryTest.php