X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FCRM%2FContact%2FBAO%2FGroupContactCacheTest.php;h=a0d06a8d263aae7e62208b7bb456b22c9f05da97;hb=b190ef9cca2c2ba0bab7da22a89a6e74395c4502;hp=e4a7eb6a937a2907dad5a3c7c7cb6e3a5d80778a;hpb=26d575801cbb5e501a459292c2b9a7c094c7e540;p=civicrm-core.git diff --git a/tests/phpunit/CRM/Contact/BAO/GroupContactCacheTest.php b/tests/phpunit/CRM/Contact/BAO/GroupContactCacheTest.php index e4a7eb6a93..a0d06a8d26 100644 --- a/tests/phpunit/CRM/Contact/BAO/GroupContactCacheTest.php +++ b/tests/phpunit/CRM/Contact/BAO/GroupContactCacheTest.php @@ -245,22 +245,12 @@ class CRM_Contact_BAO_GroupContactCacheTest extends CiviUnitTestCase { */ private $_testObjects; - /** - * Sets up the fixture, for example, opens a network connection. - * - * This method is called before a test is executed. - */ - protected function setUp() { - $this->_testObjects = []; - parent::setUp(); - } - /** * Tears down the fixture, for example, closes a network connection. * * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown(): void { parent::tearDown(); $this->deleteTestObjects(); } @@ -390,8 +380,7 @@ class CRM_Contact_BAO_GroupContactCacheTest extends CiviUnitTestCase { ); $afterGroup = $this->callAPISuccessGetSingle('Group', ['id' => $group->id]); - $this->assertTrue(empty($afterGroup['cache_date']), 'refresh date should not be set as the cache is not built'); - $this->assertTrue(empty($afterGroup['refresh_date']), 'refresh date should not be set as the cache is not built'); + $this->assertTrue(empty($afterGroup['cache_date']), 'cache date should not be set as the cache is not built'); } /**