Update DynamicAuthorizationTest to flush sanely
authorEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 16 Aug 2022 08:55:50 +0000 (20:55 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 16 Aug 2022 08:55:50 +0000 (20:55 +1200)
tests/phpunit/Civi/API/Subscriber/DynamicFKAuthorizationTest.php

index 5dc2cf7b915deb8254fff7a2d05a683d18510832..8bf1ae9ff0926aa1eac5acd7c4cdc66d8e1714fc 100644 (file)
@@ -30,7 +30,6 @@ class DynamicFKAuthorizationTest extends \CiviUnitTestCase {
 
   protected function setUp(): void {
     parent::setUp();
-    \CRM_Core_DAO_AllCoreTables::flush();
 
     \CRM_Core_DAO_AllCoreTables::registerEntityType('FakeFile', 'CRM_Fake_DAO_FakeFile', 'fake_file');
     $fileProvider = new StaticProvider(
@@ -102,11 +101,6 @@ class DynamicFKAuthorizationTest extends \CiviUnitTestCase {
     ));
   }
 
-  protected function tearDown(): void {
-    parent::tearDown();
-    \CRM_Core_DAO_AllCoreTables::flush();
-  }
-
   /**
    * @return array
    */
@@ -184,7 +178,7 @@ class DynamicFKAuthorizationTest extends \CiviUnitTestCase {
    *
    * @dataProvider okDataProvider
    */
-  public function testOk(string $entity, string $action, array $params): array {
+  public function testOk(string $entity, string $action, array $params): void {
     $params['version'] = 3;
     $params['debug'] = 1;
     $params['check_permissions'] = 1;