[TASK] Remove database prophecy call in InlineStackProcessorTest 63/49263/3
authorWouter Wolters <typo3@wouterwolters.nl>
Fri, 29 Jul 2016 11:14:23 +0000 (13:14 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 1 Aug 2016 09:49:35 +0000 (11:49 +0200)
The call is not needed. Without the call the Unit tests are green
as well.

Resolves: #77302
Releases: master
Change-Id: Ia50fc6c161d2bec3206122452136cd518ac10aa4
Reviewed-on: https://review.typo3.org/49263
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Tests/Unit/Form/InlineStackProcessorTest.php

index 342dc31..8252984 100644 (file)
@@ -15,7 +15,6 @@ namespace TYPO3\CMS\Backend\Tests\Unit\Form;
  */
 
 use TYPO3\CMS\Backend\Form\InlineStackProcessor;
-use TYPO3\CMS\Core\Database\DatabaseConnection;
 use TYPO3\CMS\Core\Tests\UnitTestCase;
 
 /**
@@ -23,12 +22,6 @@ use TYPO3\CMS\Core\Tests\UnitTestCase;
  */
 class InlineStackProcessorTest extends UnitTestCase
 {
-    protected function setUp()
-    {
-        // @todo: Remove if stack processor does not fiddle with tsConfig anymore and no longer sets 'config'
-        $dbProphecy = $this->prophesize(DatabaseConnection::class);
-        $GLOBALS['TYPO3_DB'] = $dbProphecy->reveal();
-    }
 
     /**
      * @return array