Skip to content
Snippets Groups Projects
Commit e5030d48 authored by Sascha Löffler's avatar Sascha Löffler Committed by Christian Kuhn
Browse files

[TASK] Make FrontendWorkspaceRestrictionTest notice free

Resolves: #84428
Releases: master
Change-Id: I1e65bbb8ba91e6f1a1fc36d2c678c592361ca1dd
Reviewed-on: https://review.typo3.org/56299


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent aad48b0e
Branches
Tags
No related merge requests found
...@@ -20,11 +20,6 @@ use TYPO3\CMS\Frontend\Page\PageRepository; ...@@ -20,11 +20,6 @@ use TYPO3\CMS\Frontend\Page\PageRepository;
class FrontendWorkspaceRestrictionTest extends AbstractRestrictionTestCase class FrontendWorkspaceRestrictionTest extends AbstractRestrictionTestCase
{ {
/**
* Subject is not notice free, disable E_NOTICES
*/
protected static $suppressNotices = true;
/** /**
* @test * @test
*/ */
...@@ -41,6 +36,9 @@ class FrontendWorkspaceRestrictionTest extends AbstractRestrictionTestCase ...@@ -41,6 +36,9 @@ class FrontendWorkspaceRestrictionTest extends AbstractRestrictionTestCase
$pageRepository = $this->createMock(PageRepository::class); $pageRepository = $this->createMock(PageRepository::class);
$pageRepository->versioningPreview = false; $pageRepository->versioningPreview = false;
$GLOBALS['TSFE'] = new \stdClass();
$GLOBALS['TSFE']->sys_page = $pageRepository;
$subject = new FrontendWorkspaceRestriction(0); $subject = new FrontendWorkspaceRestriction(0);
$expression = $subject->buildExpression(['aTable' => 'aTable'], $this->expressionBuilder); $expression = $subject->buildExpression(['aTable' => 'aTable'], $this->expressionBuilder);
$this->assertSame('("aTable"."t3ver_state" <= 0) AND ("aTable"."pid" <> -1)', (string)$expression); $this->assertSame('("aTable"."t3ver_state" <= 0) AND ("aTable"."pid" <> -1)', (string)$expression);
......
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