[FOLLOWUP][TASK] Migrate tce_db, tce_file and FormEngine entry points to routing 24/42724/2
authorWouter Wolters <typo3@wouterwolters.nl>
Tue, 18 Aug 2015 17:58:43 +0000 (19:58 +0200)
committerBenni Mack <benni@typo3.org>
Tue, 18 Aug 2015 18:04:13 +0000 (20:04 +0200)
Fix broken unit-tests.

Resolves: #69162
Releases: master
Change-Id: I4331db64694bb3921cdce1795f155afeddba5d5b
Reviewed-on: http://review.typo3.org/42724
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/backend/Tests/Unit/Controller/File/FileControllerTest.php

index 974de84..2e23871 100644 (file)
@@ -98,7 +98,6 @@ class FileControllerTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                $this->fileController->_set('fileData', $fileData);
                $this->fileController->_set('redirect', FALSE);
 
-               $this->fileController->expects($this->once())->method('init');
                $this->fileController->expects($this->once())->method('main');
                $this->mockAjaxRequestHandler->expects($this->once())->method('addContent')->with('result', $fileData);
                $this->mockAjaxRequestHandler->expects($this->once())->method('setContentFormat')->with('json');
@@ -118,7 +117,6 @@ class FileControllerTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                $this->fileController->_set('fileData', $fileData);
                $this->fileController->_set('redirect', FALSE);
 
-               $this->fileController->expects($this->once())->method('init');
                $this->fileController->expects($this->once())->method('main');
                $this->mockAjaxRequestHandler->expects($this->once())->method('addContent')->with('result', $fileData);
                $this->mockAjaxRequestHandler->expects($this->once())->method('setContentFormat')->with('json');
@@ -138,7 +136,6 @@ class FileControllerTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                $this->fileController->_set('fileData', $fileData);
                $this->fileController->_set('redirect', FALSE);
 
-               $this->fileController->expects($this->once())->method('init');
                $this->fileController->expects($this->once())->method('main');
                $this->mockAjaxRequestHandler->expects($this->once())->method('addContent')->with('result', $fileData);
                $this->mockAjaxRequestHandler->expects($this->once())->method('setContentFormat')->with('json');
@@ -164,7 +161,6 @@ class FileControllerTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                $this->fileController->_set('fileData', $fileData);
                $this->fileController->_set('redirect', FALSE);
 
-               $this->fileController->expects($this->once())->method('init');
                $this->fileController->expects($this->once())->method('main');
                $this->mockAjaxRequestHandler->expects($this->once())->method('addContent')->with('result', $result);
                $this->mockAjaxRequestHandler->expects($this->once())->method('setContentFormat')->with('json');