Skip to content

Commit

Permalink
[TASK] Make FlashMessagesViewHelperTest notice free
Browse files Browse the repository at this point in the history
Releases: master
Resolves: #84346
Change-Id: Ie42bb8d7263ec0ca44b38ca6fb8d39aba5dcd43a
Reviewed-on: https://review.typo3.org/56226
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
  • Loading branch information
janhelke authored and lolli42 committed Mar 16, 2018
1 parent 6933487 commit 9bac334
Showing 1 changed file with 6 additions and 5 deletions.
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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());
}
Expand Down

0 comments on commit 9bac334

Please sign in to comment.