[BUGFIX] Incomplete mock raises PHP 5.4 warning 78/20078/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:22:21 +0000 (19:22 +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/20078
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/frontend/Tests/Unit/ContentObject/Menu/AbstractMenuContentObjectTest.php

index bbcc378..376e70d 100644 (file)
@@ -52,6 +52,7 @@ class AbstractMenuContentObjectTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTe
                $GLOBALS['TYPO3_DB'] = $this->getMock('TYPO3\\CMS\\Core\\Database\\DatabaseConnection');
                $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();
        }
 
        /**