From: Eileen McNaughton Date: Tue, 16 Aug 2022 08:55:50 +0000 (+1200) Subject: Update DynamicAuthorizationTest to flush sanely X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a007297b567cffcd7dcf694d865dc9efa97b4eb1;p=civicrm-core.git Update DynamicAuthorizationTest to flush sanely --- diff --git a/tests/phpunit/Civi/API/Subscriber/DynamicFKAuthorizationTest.php b/tests/phpunit/Civi/API/Subscriber/DynamicFKAuthorizationTest.php index 5dc2cf7b91..8bf1ae9ff0 100644 --- a/tests/phpunit/Civi/API/Subscriber/DynamicFKAuthorizationTest.php +++ b/tests/phpunit/Civi/API/Subscriber/DynamicFKAuthorizationTest.php @@ -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;