[BUGFIX] Incomplete mock raises PHP 5.4 warning 79/20079/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Mon, 22 Apr 2013 17:11:49 +0000 (19:11 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 22 Apr 2013 17:35:43 +0000 (19:35 +0200)
Fix the travis fail on PHP 5.4, introduced by #45254

Related: #45254
Resolves: #47449
Releases: 6.1, 6.0

Change-Id: I4f4f4df62989ad67c3b32aea304a8718f0c344b2
Reviewed-on: https://review.typo3.org/20079
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/frontend/Tests/Unit/ContentObject/Menu/AbstractMenuContentObjectTest.php

index a086b9a..db81d72 100644 (file)
@@ -59,6 +59,7 @@ class AbstractMenuContentObjectTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTe
                $GLOBALS['TYPO3_DB'] = $this->getMock('t3lib_db');
                $GLOBALS['TSFE'] = $this->getMock('TYPO3\\CMS\\Frontend\\Controller\\TypoScriptFrontendController', array(), array($GLOBALS['TYPO3_CONF_VARS'], 1, 1));
                $GLOBALS['TSFE']->cObj = new \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer();
+               $GLOBALS['TSFE']->page = array();
        }
 
        /**