add change to ACLPermissionTest.php from original pull request
authorsebalis <sebalis@gmx.net>
Sat, 9 Sep 2023 01:19:13 +0000 (03:19 +0200)
committersebalis <sebalis@gmx.net>
Sat, 9 Sep 2023 01:19:13 +0000 (03:19 +0200)
Co-authored-by: Seamus Lee <seamuslee001@gmail.com>
tests/phpunit/api/v3/ACLPermissionTest.php

index 751f5984ae427f207ff51edca3749541c57e3ee5..582a0e860c913c45795515cea51bff14313e9369 100644 (file)
@@ -1456,6 +1456,10 @@ class api_v3_ACLPermissionTest extends CiviUnitTestCase {
     $this->assertCount(2, $contacts);
     $this->assertEquals($contact2, $contacts[0]['id']);
     $this->assertEquals($contact3, $contacts[1]['id']);
+    $groups = CRM_ACL_API::group(CRM_ACL_API::EDIT);
+    $this->assertFalse(in_array($excludeGroup, $groups));
+    Civi::cache('metadata')->clear();
+    Civi::$statics['CRM_ACL_BAO_ACL'] = [];
   }
 
   /**