From de15998ff6ef693e7d5f76b3f26ffb4ad8f5e94e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BCrk?= <stefan@buerk.tech> Date: Fri, 8 Sep 2023 23:58:01 +0200 Subject: [PATCH] [TASK] Remove unwanted `use function` php import MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Using function imports with `use` is usually not used in the TYPO3 core. Due to an oversight in the review for #92768 this slipped in. This change uses the `self::assertCount()` instead of the import function `assertCount()` to follow current policy again. Resolves: #101884 Related: #92768 Releases: main, 12.4 Change-Id: Ia3da8eaf1c6a00f331af83fd1efd88f125e60be5 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80909 Tested-by: Stefan Bürk <stefan@buerk.tech> Reviewed-by: Stefan Bürk <stefan@buerk.tech> Tested-by: core-ci <typo3@b13.com> --- .../Functional/Persistence/ParentChildTranslationTest.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/typo3/sysext/extbase/Tests/Functional/Persistence/ParentChildTranslationTest.php b/typo3/sysext/extbase/Tests/Functional/Persistence/ParentChildTranslationTest.php index 516431e79c17..05698f4e667d 100644 --- a/typo3/sysext/extbase/Tests/Functional/Persistence/ParentChildTranslationTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Persistence/ParentChildTranslationTest.php @@ -21,8 +21,6 @@ use TYPO3\CMS\Core\Context\LanguageAspect; use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase; use TYPO3Tests\ParentChildTranslation\Domain\Repository\MainRepository; -use function PHPUnit\Framework\assertCount; - final class ParentChildTranslationTest extends FunctionalTestCase { protected array $testExtensionsToLoad = ['typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/parent_child_translation']; @@ -42,7 +40,7 @@ final class ParentChildTranslationTest extends FunctionalTestCase $query = $this->get(MainRepository::class)->createQuery(); $results = $query->execute(); - assertCount(2, $results); + self::assertCount(2, $results); $children = []; foreach ($results as $main) { @@ -74,7 +72,7 @@ final class ParentChildTranslationTest extends FunctionalTestCase $results = $query->execute(); - assertCount(2, $results); + self::assertCount(2, $results); $children = []; foreach ($results as $main) { -- GitLab