dev/core#2039 Fix test to use set up method with more data integrity
authoreileen <emcnaughton@wikimedia.org>
Thu, 17 Sep 2020 04:22:20 +0000 (16:22 +1200)
committereileen <emcnaughton@wikimedia.org>
Thu, 17 Sep 2020 04:22:20 +0000 (16:22 +1200)
commitb19b754f068630aec094d6b0e031b3640a35cdb8
treec3698b9f19655a42f57b82a6bd8c4cacbfb74c3c
parentf7ca027c817f58d62a40e6aff3936a5a4b1f6eae
dev/core#2039 Fix test to use set up method with more data integrity

Using the api rather than CRM_Core_DAO::createTestObject to create the phone ensures it is created with is_primary.

We might need to fix CRM_Core_DAO::createTestObject but for this case simply using the api suffices
tests/phpunit/api/v3/ACLPermissionTest.php