[BUGFIX] Follow-up: Add stdWrap for _DEFAULT_PI_VARS 63/21563/4
authorPhilipp Gampe <philipp.gampe@typo3.org>
Fri, 21 Jun 2013 13:09:37 +0000 (15:09 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Fri, 21 Jun 2013 18:25:43 +0000 (20:25 +0200)
Fix a broken unit test: Creating default object from empty value

Resolves: #49314
Related: #22045
Releases: 6.2
Change-Id: Iad2582f1949202441086c1d38605be18ac03a20c
Reviewed-on: https://review.typo3.org/21563
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/frontend/Tests/Unit/Plugin/AbstractPluginTest.php

index bbc5ecb..7699d86 100644 (file)
@@ -47,9 +47,10 @@ class AbstractPluginTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                parent::setUp();
 
                // Allow objects until 100 levels deep when executing the stdWrap
+               $GLOBALS['TSFE'] = new \stdClass();
                $GLOBALS['TSFE']->cObjectDepthCounter = 100;
 
-               $this->abstractPlugin = new \TYPO3\CMS\Frontend\Plugin\AbstractPlugin;
+               $this->abstractPlugin = new \TYPO3\CMS\Frontend\Plugin\AbstractPlugin();
                $this->abstractPlugin->cObj = new \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer();
                $this->defaultPiVars = $this->abstractPlugin->piVars;
        }