[BUGFIX] Fix broken Unit-test for #44825 12/24012/2
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:35:06 +0000 (10:35 +0200)
Change-Id: Id1ecce2b4fe789b655f63cd8b5f78ab20eadfbd5
Resolves: #52201
Related: #44825
Releases: 6.2, 6.1, 6.0
Reviewed-on: https://review.typo3.org/24012
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/frontend/Tests/Unit/Controller/TypoScriptFrontendControllerTest.php

index 30e9670..48d1efe 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());
@@ -182,4 +182,4 @@ class TypoScriptFrontendControllerTest extends \TYPO3\CMS\Core\Tests\UnitTestCas
 
 }
 
-?>
\ No newline at end of file
+?>