Skip to content

Commit

Permalink
[TASK] Drop test helper class that is no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverklee committed Oct 3, 2024
1 parent f93d856 commit f21736c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 30 deletions.
5 changes: 2 additions & 3 deletions Tests/Unit/Domain/Model/FrontendUserGroupTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use OliverKlee\FeUserExtraFields\Domain\Model\FrontendUserGroup;
use OliverKlee\FeUserExtraFields\Tests\Unit\Domain\Model\Fixtures\XclassFrontendUserGroup;
use OliverKlee\FeUserExtraFields\Tests\Unit\Support\MakeInstanceCacheFlusher;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
use TYPO3\CMS\Extbase\Persistence\ObjectStorage;
Expand All @@ -22,7 +21,7 @@ final class FrontendUserGroupTest extends UnitTestCase
protected function setUp(): void
{
parent::setUp();
MakeInstanceCacheFlusher::flushMakeInstanceCache();
GeneralUtility::flushInternalRuntimeCaches();

$this->subject = new FrontendUserGroup();
}
Expand All @@ -31,7 +30,7 @@ protected function tearDown(): void
{
// @phpstan-ignore offsetAccess.nonOffsetAccessible, offsetAccess.nonOffsetAccessible
unset($GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']);
MakeInstanceCacheFlusher::flushMakeInstanceCache();
GeneralUtility::flushInternalRuntimeCaches();
parent::tearDown();
}

Expand Down
5 changes: 2 additions & 3 deletions Tests/Unit/Domain/Model/FrontendUserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use OliverKlee\FeUserExtraFields\Domain\Model\FrontendUser;
use OliverKlee\FeUserExtraFields\Domain\Model\FrontendUserGroup;
use OliverKlee\FeUserExtraFields\Tests\Unit\Domain\Model\Fixtures\XclassFrontendUser;
use OliverKlee\FeUserExtraFields\Tests\Unit\Support\MakeInstanceCacheFlusher;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Domain\Model\FileReference;
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
Expand All @@ -24,7 +23,7 @@ final class FrontendUserTest extends UnitTestCase
protected function setUp(): void
{
parent::setUp();
MakeInstanceCacheFlusher::flushMakeInstanceCache();
GeneralUtility::flushInternalRuntimeCaches();

$this->subject = new FrontendUser();
}
Expand All @@ -33,7 +32,7 @@ protected function tearDown(): void
{
// @phpstan-ignore offsetAccess.nonOffsetAccessible, offsetAccess.nonOffsetAccessible
unset($GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']);
MakeInstanceCacheFlusher::flushMakeInstanceCache();
GeneralUtility::flushInternalRuntimeCaches();
parent::tearDown();
}

Expand Down
24 changes: 0 additions & 24 deletions Tests/Unit/Support/MakeInstanceCacheFlusher.php

This file was deleted.

0 comments on commit f21736c

Please sign in to comment.