[TASK] Remove usage of TSFE->sys_page
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Unit / Database / Query / Restriction / FrontendRestrictionContainerTest.php
index 7109406..933c134 100644 (file)
@@ -22,7 +22,6 @@ use TYPO3\CMS\Core\Context\WorkspaceAspect;
 use TYPO3\CMS\Core\Database\Query\Restriction\FrontendRestrictionContainer;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 use TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication;
-use TYPO3\CMS\Frontend\Page\PageRepository;
 
 class FrontendRestrictionContainerTest extends AbstractRestrictionTestCase
 {
@@ -175,12 +174,6 @@ class FrontendRestrictionContainerTest extends AbstractRestrictionTestCase
         ]);
         GeneralUtility::setSingletonInstance(Context::class, $context);
 
-        $pageRepository = $this->createMock(PageRepository::class);
-        $pageRepository->__set('context', $context);
-        $pageRepository->versioningWorkspaceId = $workspaceId;
-
-        $GLOBALS['TSFE'] = new \stdClass();
-        $GLOBALS['TSFE']->sys_page = $pageRepository;
         $GLOBALS['SIM_ACCESS_TIME'] = 42;
 
         $subject = new FrontendRestrictionContainer($context);