diff --git a/typo3/sysext/fluid/Tests/Unit/ViewHelpers/FlashMessagesViewHelperTest.php b/typo3/sysext/fluid/Tests/Unit/ViewHelpers/FlashMessagesViewHelperTest.php index 01245817feec..a39b45bbcbc4 100644 --- a/typo3/sysext/fluid/Tests/Unit/ViewHelpers/FlashMessagesViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Unit/ViewHelpers/FlashMessagesViewHelperTest.php @@ -24,11 +24,6 @@ */ class FlashMessagesViewHelperTest extends ViewHelperBaseTestcase { - /** - * Subject is not notice free, disable E_NOTICES - */ - protected static $suppressNotices = true; - /** * @var \TYPO3\CMS\Fluid\ViewHelpers\FlashMessagesViewHelper */ @@ -57,6 +52,12 @@ protected function setUp() */ public function renderReturnsEmptyStringIfNoFlashMessagesAreInQueue() { + $this->setArgumentsUnderTest( + $this->viewHelper, + [ + 'as' => null + ] + ); $this->flashMessageQueue->getAllMessagesAndFlush()->willReturn(); $this->assertEmpty($this->viewHelper->initializeArgumentsAndRender()); }