Merge pull request #19806 from eileenmcnaughton/msg_compat
[civicrm-core.git] / tests / phpunit / CRM / Contact / BAO / GroupContactCacheTest.php
index 897ebbf453653238b0cd13a41875492b6fab4f6a..a0d06a8d263aae7e62208b7bb456b22c9f05da97 100644 (file)
@@ -240,26 +240,17 @@ class CRM_Contact_BAO_GroupContactCacheTest extends CiviUnitTestCase {
   // *** Everything below this should be moved to parent class ****
 
   /**
-   * @var array(DAO_Name => array(int)) List of items to garbage-collect during tearDown
+   * @var array
+   * (DAO_Name => array(int)) List of items to garbage-collect during tearDown
    */
   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();
   }
@@ -389,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');
   }
 
   /**