[BUGFIX] Fix broken Unit-test for #44825 98/23998/3
authorWouter Wolters <typo3@wouterwolters.nl>
Mon, 23 Sep 2013 20:16:32 +0000 (22:16 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Tue, 24 Sep 2013 08:34:34 +0000 (10:34 +0200)
Change-Id: Id1ecce2b4fe789b655f63cd8b5f78ab20eadfbd5
Resolves: #52201
Related: #44825
Releases: 6.2, 6.1, 6.0
Reviewed-on: https://review.typo3.org/23998
Reviewed-by: Andy Grunwald
Reviewed-by: Oliver Hader
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/frontend/Tests/Unit/Controller/TypoScriptFrontendControllerTest.php

index 2328561..312447e 100644 (file)
@@ -80,7 +80,7 @@ class TypoScriptFrontendControllerTest extends \TYPO3\CMS\Core\Tests\UnitTestCas
                        'INTincScript_loadJSCode',
                        'setAbsRefPrefix'
                ), array(), '', FALSE);
-               $tsfe->expects($this->once())->method('INTincScript_process')->will($this->returnCallback(array($this, 'INTincScript_processCallback')));
+               $tsfe->expects($this->exactly(2))->method('INTincScript_process')->will($this->returnCallback(array($this, 'INTincScript_processCallback')));
                $tsfe->content = file_get_contents(__DIR__ . '/Fixtures/renderedPage.html');
                $tsfe->config['INTincScript_ext']['divKey'] = '679b52796e75d474ccbbed486b6837ab';
                $tsfe->config['INTincScript'] = array('INT_SCRIPT.679b52796e75d474ccbbed486b6837ab' => array());