Skip to content
Snippets Groups Projects
Commit 3f15c26e authored by Tymoteusz Motylewski's avatar Tymoteusz Motylewski Committed by Christian Kuhn
Browse files

[TASK] Remove unneeded BE user context set up from TreeController test

The BE user aspect is correctly initialized since TestingFramework 6.4.6
So the initailization can be removed from the test.

Resolves: #92574
Releases: master, 10.4
Change-Id: I78f101338c84931bef57e7cf63fdb15a8373def3
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/66150


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent df281c1c
Branches
Tags
No related merge requests found
......@@ -20,7 +20,6 @@ namespace TYPO3\CMS\Backend\Tests\Functional\Controller\Page;
use TYPO3\CMS\Backend\Controller\Page\TreeController;
use TYPO3\CMS\Core\Authentication\BackendUserAuthentication;
use TYPO3\CMS\Core\Context\Context;
use TYPO3\CMS\Core\Context\UserAspect;
use TYPO3\CMS\Core\Context\WorkspaceAspect;
use TYPO3\CMS\Core\Core\Bootstrap;
use TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait;
......@@ -79,8 +78,6 @@ class TreeControllerTest extends FunctionalTestCase
//regular editor, non admin
$this->backendUser = $this->setUpBackendUser(9);
$this->context = GeneralUtility::makeInstance(Context::class);
$this->context->setAspect('backend.user', GeneralUtility::makeInstance(UserAspect::class, $this->backendUser));
$this->subject = $this->getAccessibleMock(TreeController::class, ['dummy']);
}
......
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