Skip to content
Snippets Groups Projects
Commit de15998f authored by Stefan Bürk's avatar Stefan Bürk
Browse files

[TASK] Remove unwanted `use function` php import

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: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent 9941dec5
Branches
Tags
No related merge requests found
......@@ -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) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment