Merge pull request #19806 from eileenmcnaughton/msg_compat
[civicrm-core.git] / tests / phpunit / CRM / Contact / BAO / GroupTest.php
index 3fde42376542c1bdfa5efadc735913cef649d10e..12a30dd15a08d2db86c7c5f7618907fd302f8981 100644 (file)
  */
 class CRM_Contact_BAO_GroupTest extends CiviUnitTestCase {
 
-  /**
-   * Sets up the fixture, for example, opens a network connection.
-   *
-   * This method is called before a test is executed.
-   */
-  protected function setUp() {
-    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 {
     $this->quickCleanup(['civicrm_mapping_field', 'civicrm_mapping', 'civicrm_group', 'civicrm_saved_search']);
   }
 
@@ -146,6 +137,7 @@ class CRM_Contact_BAO_GroupTest extends CiviUnitTestCase {
     ];
     $group3 = CRM_Contact_BAO_Group::create($params);
 
+    unset(Civi::$statics['CRM_Core_Permission_Base']);
     // Check with no group type restriction
     $nestedGroup = CRM_Core_PseudoConstant::nestedGroup();
     $this->assertEquals([