From 5c14581731bfe9b0e83cbd325273e85bc61663fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BCrk?= Date: Thu, 12 Dec 2024 11:44:38 +0100 Subject: [PATCH] [TASK] Ensure `TestCase::setUp()` parent call chain in tests Next `typo3/testing-framework` version `8.x` includes additional integrity checks within the provided abstract test cases. That requires that `setUp()` and `tearDown()` calls needs to hit the parent methods. Some tests overrides the `setUp()` method in tests but fail to call the parent method. This change adds the missing `parent::setUp()` calls to prepare towards upgrading `typo3/testing-framework`. --- Tests/Unit/Access/AllowedGlossarySyncAccessTest.php | 1 + Tests/Unit/Access/AllowedTranslateAccessTest.php | 1 + 2 files changed, 2 insertions(+) diff --git a/Tests/Unit/Access/AllowedGlossarySyncAccessTest.php b/Tests/Unit/Access/AllowedGlossarySyncAccessTest.php index 037152be..9baab490 100644 --- a/Tests/Unit/Access/AllowedGlossarySyncAccessTest.php +++ b/Tests/Unit/Access/AllowedGlossarySyncAccessTest.php @@ -15,6 +15,7 @@ class AllowedGlossarySyncAccessTest extends UnitTestCase protected function setUp(): void { + parent::setUp(); $this->accessInstance = new AllowedGlossarySyncAccess(); } diff --git a/Tests/Unit/Access/AllowedTranslateAccessTest.php b/Tests/Unit/Access/AllowedTranslateAccessTest.php index c0e5e318..a34f9377 100644 --- a/Tests/Unit/Access/AllowedTranslateAccessTest.php +++ b/Tests/Unit/Access/AllowedTranslateAccessTest.php @@ -15,6 +15,7 @@ class AllowedTranslateAccessTest extends UnitTestCase protected function setUp(): void { + parent::setUp(); $this->accessInstance = new AllowedTranslateAccess(); }