[NFC] [REF] Test class cleanup
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 24 Oct 2021 23:27:26 +0000 (12:27 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 25 Oct 2021 00:11:00 +0000 (13:11 +1300)
commit86624a75865dab7e80734cabc520a643fc634f00
tree1db8fc9b8cbb0dbd8d8c975277243d9b83044511
parent2b4f6f29df7d0db134180050ac7cc7e25e735ed6
[NFC] [REF] Test class cleanup

The driver for this was to remove uses of the DAO->createTestObject methods which were creating
individuals with data invalid for them. However, this is a full 'margin cleanup' and
standardises the test.

I think the whole createTestObject approach is best viewed as an early attempt to get
lots of entities testable quickly but it's overwraught for creating contacts
(and generally a bit flakey)
tests/phpunit/CRM/Contact/BAO/GroupContactCacheTest.php