[BUGFIX] Adjust visibility of setUp() and tearDown() 11/43511/3
authorHelmut Hummel <helmut.hummel@typo3.org>
Wed, 23 Sep 2015 19:27:55 +0000 (21:27 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Wed, 23 Sep 2015 19:52:00 +0000 (21:52 +0200)
Protected is the correct visibility for those functions, as
given by the base class.

Resolves: #64642
Releases: master
Change-Id: Ifb5233f391dfa348d1cbf96baf8999f3cda33d63
Reviewed-on: http://review.typo3.org/43511
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
52 files changed:
typo3/sysext/backend/Tests/Unit/Form/FormDataComplierTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/FlexFormSegmentTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/OnTheFlyTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/TcaDatabaseRecordTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseEditRowTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseEffectivePidTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseLanguageRowsTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabasePageLanguageOverlayRowsTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseParentPageRowTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRecordTypeValueTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRowDateTimeFieldsTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRowDefaultValuesTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRowInitializeNewTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseUniqueUidNewRowTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseUserPermissionCheckTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/EvaluateDisplayConditionsTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/InitializeProcessedTcaTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/PageTsConfigMergedTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/ParentPageTcaTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TableTcaTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaCheckboxItemsTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsOverridesTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaFlexFetchTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaFlexPrepareTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaFlexProcessTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaGroupTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaRadioItemsTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaTypesRemoveUnusedColumnsTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaTypesShowitemTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/UserTsConfigTest.php
typo3/sysext/backend/Tests/Unit/Http/BackendModuleRequestHandlerTest.php
typo3/sysext/core/Tests/Unit/Http/MessageTest.php
typo3/sysext/core/Tests/Unit/Http/RequestTest.php
typo3/sysext/core/Tests/Unit/Http/ResponseTest.php
typo3/sysext/core/Tests/Unit/Http/ServerRequestTest.php
typo3/sysext/core/Tests/Unit/Http/StreamTest.php
typo3/sysext/core/Tests/Unit/Http/UploadedFileTest.php
typo3/sysext/core/Tests/Unit/Service/MarkerBasedTemplateServiceTest.php
typo3/sysext/extbase/Tests/Functional/Persistence/EnableFieldsTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/AliasViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Format/CaseViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Format/CurrencyViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Format/NumberViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Link/TypolinkViewHelperTest.php
typo3/sysext/install/Tests/Unit/Updates/TableFlexFormToTtContentFieldsUpdateTest.php
typo3/sysext/jumpurl/Tests/Unit/ContentObjectRendererTest.php
typo3/sysext/jumpurl/Tests/Unit/JumpUrlHandlerTest.php
typo3/sysext/jumpurl/Tests/Unit/JumpUrlProcessorTest.php
typo3/sysext/recycler/Tests/Unit/Task/CleanerFieldProviderTest.php
typo3/sysext/recycler/Tests/Unit/Task/CleanerTaskTest.php
typo3/sysext/workspaces/Tests/Functional/ActionHandler/ActionHandlerTest.php

index d64ebfa..6ee7e39 100644 (file)
@@ -35,7 +35,7 @@ class FormDataCompilerTest extends UnitTestCase {
         */
        protected $formDataGroupProphecy;
 
-       public function setUp() {
+       protected function setUp() {
                $this->formDataGroupProphecy = $this->prophesize(FormDataGroupInterface::class);
                $this->subject = new FormDataCompiler($this->formDataGroupProphecy->reveal());
        }
index a59f7c5..b532f46 100644 (file)
@@ -32,7 +32,7 @@ class FlexFormSegmentTest extends UnitTestCase {
         */
        protected $subject;
 
-       public function setUp() {
+       protected function setUp() {
                $this->subject = new FlexFormSegment();
        }
 
index 5105d59..d1f1172 100644 (file)
@@ -32,7 +32,7 @@ class OnTheFlyTest extends UnitTestCase {
         */
        protected $subject;
 
-       public function setUp() {
+       protected function setUp() {
                $this->subject = new OnTheFly();
        }
 
index 1203b0d..2e6ee70 100644 (file)
@@ -32,7 +32,7 @@ class TcaDatabaseRecordTest extends UnitTestCase {
         */
        protected $subject;
 
-       public function setUp() {
+       protected function setUp() {
                $this->subject = new TcaDatabaseRecord();
        }
 
index bf7fd1a..71f02e7 100644 (file)
@@ -36,7 +36,7 @@ class DatabaseEditRowTest extends UnitTestCase {
         */
        protected $dbProphecy;
 
-       public function setUp() {
+       protected function setUp() {
                $this->dbProphecy = $this->prophesize(DatabaseConnection::class);
                $GLOBALS['TYPO3_DB'] = $this->dbProphecy->reveal();
 
index c8cc4c8..27bac04 100644 (file)
@@ -27,7 +27,7 @@ class DatabaseEffectivePidTest extends UnitTestCase {
         */
        protected $subject;
 
-       public function setUp() {
+       protected function setUp() {
                $this->subject = new DatabaseEffectivePid();
        }
 
index 156763b..8daff17 100644 (file)
@@ -38,7 +38,7 @@ class DatabaseLanguageRowsTest extends UnitTestCase {
         */
        protected $dbProphecy;
 
-       public function setUp() {
+       protected function setUp() {
                $this->dbProphecy = $this->prophesize(DatabaseConnection::class);
                $GLOBALS['TYPO3_DB'] = $this->dbProphecy->reveal();
 
index 017b21a..26babf5 100644 (file)
@@ -35,7 +35,7 @@ class DatabasePageLanguageOverlayRowsTest extends UnitTestCase {
         */
        protected $dbProphecy;
 
-       public function setUp() {
+       protected function setUp() {
                $this->dbProphecy = $this->prophesize(DatabaseConnection::class);
                $GLOBALS['TYPO3_DB'] = $this->dbProphecy->reveal();
 
index 277b3a4..84d04b2 100644 (file)
@@ -35,7 +35,7 @@ class DatabaseParentPageRowTest extends UnitTestCase {
         */
        protected $dbProphecy;
 
-       public function setUp() {
+       protected function setUp() {
                $this->subject = new DatabaseParentPageRow();
 
                $this->dbProphecy = $this->prophesize(DatabaseConnection::class);
index 8db5062..c51e157 100644 (file)
@@ -35,7 +35,7 @@ class DatabaseRecordTypeValueTest extends UnitTestCase {
         */
        protected $dbProphecy;
 
-       public function setUp() {
+       protected function setUp() {
                $this->dbProphecy = $this->prophesize(DatabaseConnection::class);
                $GLOBALS['TYPO3_DB'] = $this->dbProphecy->reveal();
 
index aa3a42d..f36113d 100644 (file)
@@ -49,7 +49,7 @@ class DatabaseRowDateTimeFieldsTest extends UnitTestCase {
                ],
        );
 
-       public function setUp() {
+       protected function setUp() {
                $this->subject = new DatabaseRowDateTimeFields();
                $this->dbProphecy = $this->prophesize(DatabaseConnection::class);
                $GLOBALS['TYPO3_DB'] = $this->dbProphecy->reveal();
index fa394bc..3a447fc 100644 (file)
@@ -27,7 +27,7 @@ class DatabaseRowDefaultValuesTest extends UnitTestCase {
         */
        protected $subject;
 
-       public function setUp() {
+       protected function setUp() {
                $this->subject = new DatabaseRowDefaultValues();
        }
 
index 5da96bb..de3565a 100644 (file)
@@ -27,7 +27,7 @@ class DatabaseRowInitializeNewTest extends UnitTestCase {
         */
        protected $subject;
 
-       public function setUp() {
+       protected function setUp() {
                $this->subject = new DatabaseRowInitializeNew();
        }
 
index 0cc1d6a..6c7d78a 100644 (file)
@@ -27,7 +27,7 @@ class DatabaseUniqueUidNewRowTest extends UnitTestCase {
         */
        protected $subject;
 
-       public function setUp() {
+       protected function setUp() {
                $this->subject = new DatabaseUniqueUidNewRow();
        }
 
index bfb838b..96351b8 100644 (file)
@@ -43,7 +43,7 @@ class DatabaseUserPermissionCheckTest extends UnitTestCase {
         */
        protected $beUserProphecy;
 
-       public function setUp() {
+       protected function setUp() {
                $this->subject = new DatabaseUserPermissionCheck();
 
                $this->beUserProphecy = $this->prophesize(BackendUserAuthentication::class);
index 84e526d..9201236 100644 (file)
@@ -29,7 +29,7 @@ class EvaluateDisplayConditionsTest extends UnitTestCase {
         */
        protected $subject;
 
-       public function setUp() {
+       protected function setUp() {
                $this->subject = new EvaluateDisplayConditions();
        }
 
index ef6f64e..d963156 100644 (file)
@@ -27,7 +27,7 @@ class InitializeProcessedTcaTest extends UnitTestCase {
         */
        protected $subject;
 
-       public function setUp() {
+       protected function setUp() {
                $this->subject = new InitializeProcessedTca();
        }
 
index 2a834a0..7a5d295 100644 (file)
@@ -27,7 +27,7 @@ class PageTsConfigMergedTest extends UnitTestCase {
         */
        protected $subject;
 
-       public function setUp() {
+       protected function setUp() {
                $this->subject = new PageTsConfigMerged();
        }
 
index e2022c3..5480cb9 100644 (file)
@@ -27,7 +27,7 @@ class ParentPageTcaTest extends UnitTestCase {
         */
        protected $subject;
 
-       public function setUp() {
+       protected function setUp() {
                $this->subject = new ParentPageTca();
        }
 
index b6d4cf4..ad493fb 100644 (file)
@@ -27,7 +27,7 @@ class TableTcaTest extends UnitTestCase {
         */
        protected $subject;
 
-       public function setUp() {
+       protected function setUp() {
                $this->subject = new TableTca();
        }
 
index d7fcfe3..ac1aac0 100644 (file)
@@ -39,7 +39,7 @@ class TcaCheckboxItemsTest extends UnitTestCase {
         */
        protected $singletonInstances = array();
 
-       public function setUp() {
+       protected function setUp() {
                $this->singletonInstances = GeneralUtility::getSingletonInstances();
                $this->subject = new TcaCheckboxItems();
        }
index 1d45ce0..9c91a26 100644 (file)
@@ -27,7 +27,7 @@ class TcaColumnsOverridesTest extends UnitTestCase {
         */
        protected $subject;
 
-       public function setUp() {
+       protected function setUp() {
                $this->subject = new TcaColumnsOverrides();
        }
 
index 98ba4aa..475ef0d 100644 (file)
@@ -43,7 +43,7 @@ class TcaFlexFetchTest extends UnitTestCase {
         */
        protected $singletonInstances = array();
 
-       public function setUp() {
+       protected function setUp() {
                $this->singletonInstances = GeneralUtility::getSingletonInstances();
 
                // Suppress cache foo in xml helpers of GeneralUtility
index ab509ca..7ec0fc7 100644 (file)
@@ -28,7 +28,7 @@ class TcaFlexPrepareTest extends UnitTestCase {
         */
        protected $subject;
 
-       public function setUp() {
+       protected function setUp() {
                $this->subject = new TcaFlexPrepare();
        }
 
index 73da5ac..6521377 100644 (file)
@@ -39,7 +39,7 @@ class TcaFlexProcessTest extends UnitTestCase {
         */
        protected $backendUserProphecy;
 
-       public function setUp() {
+       protected function setUp() {
                /** @var BackendUserAuthentication|ObjectProphecy backendUserProphecy */
                $this->backendUserProphecy = $this->prophesize(BackendUserAuthentication::class);
                $GLOBALS['BE_USER'] = $this->backendUserProphecy->reveal();
index f9f5a79..d590a1f 100644 (file)
@@ -31,7 +31,7 @@ class TcaGroupTest extends UnitTestCase {
         */
        protected $subject;
 
-       public function setUp() {
+       protected function setUp() {
                $this->subject = new TcaGroup();
        }
 
index 7681ef3..e511a7a 100644 (file)
@@ -39,7 +39,7 @@ class TcaRadioItemsTest extends UnitTestCase {
         */
        protected $singletonInstances = array();
 
-       public function setUp() {
+       protected function setUp() {
                $this->singletonInstances = GeneralUtility::getSingletonInstances();
                $this->subject = new TcaRadioItems();
        }
index d4ca1d2..d500c2c 100644 (file)
@@ -45,7 +45,7 @@ class TcaSelectItemsTest extends UnitTestCase {
         */
        protected $singletonInstances = [];
 
-       public function setUp() {
+       protected function setUp() {
                $this->singletonInstances = GeneralUtility::getSingletonInstances();
                $this->subject = new TcaSelectItems();
        }
index cdd8768..bee73bc 100644 (file)
@@ -27,7 +27,7 @@ class TcaTypesRemoveUnusedColumnsTest extends UnitTestCase {
         */
        protected $subject;
 
-       public function setUp() {
+       protected function setUp() {
                $this->subject = new TcaTypesRemoveUnusedColumns();
        }
 
index 4832373..6c40e29 100644 (file)
@@ -27,7 +27,7 @@ class TcaTypesShowitemTest extends UnitTestCase {
         */
        protected $subject;
 
-       public function setUp() {
+       protected function setUp() {
                $this->subject = new TcaTypesShowitem();
        }
 
index 774d363..f3175ad 100644 (file)
@@ -27,7 +27,7 @@ class UserTsConfigTest extends UnitTestCase {
         */
        protected $subject;
 
-       public function setUp() {
+       protected function setUp() {
                $this->subject = new UserTsConfig();
        }
 
index ce34625..f7f1c12 100644 (file)
@@ -40,7 +40,7 @@ class BackendModuleRequestHandlerTest extends UnitTestCase {
         */
        protected $requestMock;
 
-       public function setUp() {
+       protected function setUp() {
                $this->requestMock = $this->getAccessibleMock(\TYPO3\CMS\Core\Http\ServerRequest::class, array(), array(), '', FALSE);
                $this->formProtectionMock = $this->getMockForAbstractClass(BackendFormProtection::class, array(), '', FALSE, TRUE, TRUE, array('validateToken'));
                $this->subject = $this->getAccessibleMock(BackendModuleRequestHandler::class, array('boot', 'getFormProtection'), array(\TYPO3\CMS\Core\Core\Bootstrap::getInstance()), '', TRUE);
index 75938b0..a7283f7 100644 (file)
@@ -34,7 +34,7 @@ class MessageTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
         */
        protected $message;
 
-       public function setUp() {
+       protected function setUp() {
                $this->stream = new Stream('php://memory', 'wb+');
                $this->message = (new Message())->withBody($this->stream);
        }
index 7d9fd08..269df08 100644 (file)
@@ -30,7 +30,7 @@ class RequestTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
         */
        protected $request;
 
-       public function setUp() {
+       protected function setUp() {
                $this->request = new Request();
        }
 
index 4e4d153..c32908a 100644 (file)
@@ -29,7 +29,7 @@ class ResponseTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
         */
        protected $response;
 
-       public function setUp() {
+       protected function setUp() {
                $this->response = new Response();
        }
 
index 2d72981..7dcd663 100644 (file)
@@ -30,7 +30,7 @@ class ServerRequestTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
         */
        protected $request;
 
-       public function setUp() {
+       protected function setUp() {
                $this->request = new ServerRequest();
        }
 
index 2ffd0a7..1163abb 100644 (file)
@@ -28,7 +28,7 @@ class StreamTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
         */
        protected $stream;
 
-       public function setUp() {
+       protected function setUp() {
                $this->stream = new Stream('php://memory', 'wb+');
        }
 
index a7106e0..36aa7cb 100644 (file)
@@ -27,11 +27,11 @@ class UploadedFileTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        protected $tmpFile;
 
-       public function setUp() {
+       protected function setUp() {
                $this->tmpfile = NULL;
        }
 
-       public function tearDown() {
+       protected function tearDown() {
                if (is_scalar($this->tmpFile) && file_exists($this->tmpFile)) {
                        unlink($this->tmpFile);
                }
index 76105d8..37d23c4 100644 (file)
@@ -27,7 +27,7 @@ class MarkerBasedTemplateServiceTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
         */
        protected $templateService;
 
-       public function setUp() {
+       protected function setUp() {
                $this->templateService = GeneralUtility::makeInstance(MarkerBasedTemplateService::class);
        }
 
index 27d05e8..15ca5f1 100644 (file)
@@ -36,7 +36,7 @@ class EnableFieldsTest extends AbstractDataHandlerActionTestCase {
        /**
         * Sets up this test suite.
         */
-       public function setUp() {
+       protected function setUp() {
                parent::setUp();
 
                $this->importDataSet(ORIGINAL_ROOT . 'typo3/sysext/core/Tests/Functional/Fixtures/pages.xml');
index 780bd41..60afe55 100644 (file)
@@ -23,7 +23,7 @@ class AliasViewHelperTest extends ViewHelperBaseTestcase {
         */
        protected $subject;
 
-       public function setUp(){
+       protected function setUp(){
                parent::setUp();
                $this->subject = $this->getMock(AliasViewHelper::class, array('renderChildren'));
                $this->injectDependenciesIntoViewHelper($this->subject);
index ce24e3d..ac12baf 100644 (file)
@@ -24,7 +24,7 @@ class CaseViewHelperTest extends ViewHelperBaseTestcase {
         */
        protected $subject;
 
-       public function setUp() {
+       protected function setUp() {
                parent::setUp();
                $this->subject = $this->getMock(CaseViewHelper::class, array('renderChildren'));
                $this->injectDependenciesIntoViewHelper($this->subject);
index c17bf2f..70c9eaa 100644 (file)
@@ -23,7 +23,7 @@ class CurrencyViewHelperTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
         */
        protected $subject;
 
-       public function setUp() {
+       protected function setUp() {
                $this->subject = $this->getAccessibleMock(CurrencyViewHelper::class, array('renderChildren'));
                /** @var RenderingContext $renderingContext */
                $renderingContext = $this->getMock(RenderingContext::class);
index ccd3d3d..d3458a3 100644 (file)
@@ -24,7 +24,7 @@ class NumberViewHelperTest extends UnitTestCase {
         */
        protected $fixture;
 
-       public function setUp() {
+       protected function setUp() {
                $this->fixture = $this->getMock(NumberViewHelper::class, array('renderChildren'));
                $this->fixture->expects($this->once())->method('renderChildren')->will($this->returnValue(10000.0 / 3.0));
                $renderingContext = $this->getMock(RenderingContext::class);
index b0c63b2..db8bcdc 100644 (file)
@@ -33,7 +33,7 @@ class TypolinkViewHelperTest extends ViewHelperBaseTestcase {
        /**
         * @throws \InvalidArgumentException
         */
-       public function setUp() {
+       protected function setUp() {
                $this->subject = $this->getAccessibleMock(TypolinkViewHelper::class, array('renderChildren'));
                /** @var RenderingContext  $renderingContext */
                $renderingContext = $this->getMock(RenderingContext::class);
index 1f2ea69..d6959d1 100644 (file)
@@ -41,7 +41,7 @@ class TableFlexFormToTtContentFieldsUpdateTest extends BaseTestCase {
         */
        protected $updateWizard;
 
-       public function setUp() {
+       protected function setUp() {
                unset($GLOBALS['TYPO3_CONF_VARS']['INSTALL']['wizardDone']);
                $this->packageManagerProphecy = $this->prophesize(\TYPO3\CMS\Core\Package\PackageManager::class);
                $this->dbProphecy = $this->prophesize(\TYPO3\CMS\Core\Database\DatabaseConnection::class);
@@ -50,7 +50,7 @@ class TableFlexFormToTtContentFieldsUpdateTest extends BaseTestCase {
                ExtensionManagementUtility::setPackageManager($this->packageManagerProphecy->reveal());
        }
 
-       public function tearDown() {
+       protected function tearDown() {
                ExtensionManagementUtility::setPackageManager(new PackageManager());
        }
 
index 29e2719..e2695dd 100644 (file)
@@ -55,7 +55,7 @@ class ContentObjectRendererTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
        /**
         * Set up
         */
-       public function setUp() {
+       protected function setUp() {
                $this->singletonInstances = GeneralUtility::getSingletonInstances();
                $this->createMockedLoggerAndLogManager();
 
@@ -87,7 +87,7 @@ class ContentObjectRendererTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                $this->subject->start(array(), 'tt_content');
        }
 
-       public function tearDown() {
+       protected function tearDown() {
                GeneralUtility::resetSingletonInstances($this->singletonInstances);
                parent::tearDown();
        }
index 7b0d2aa..11b2ac4 100644 (file)
@@ -47,7 +47,7 @@ class JumpUrlHandlerTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
        /**
         * Sets environment variables and initializes global mock object.
         */
-       public function setUp() {
+       protected function setUp() {
                parent::setUp();
 
                $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'] = '12345';
index 1e43ef3..dfdc9cd 100644 (file)
@@ -47,7 +47,7 @@ class JumpUrlProcessorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
        /**
         * Sets environment variables and initializes global mock object.
         */
-       public function setUp() {
+       protected function setUp() {
 
                parent::setUp();
 
index 74284ac..77687d0 100644 (file)
@@ -33,7 +33,7 @@ class CleanerFieldProviderTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
        /**
         * Sets up an instance of \TYPO3\CMS\Recycler\Task\CleanerFieldProvider
         */
-       public function setUp() {
+       protected function setUp() {
                $languageServiceMock = $this->getMock(LanguageService::class, array('sL'), array(), '', FALSE);
                $languageServiceMock->expects($this->any())->method('sL')->will($this->returnValue('titleTest'));
                $this->subject = $this->getMock(CleanerFieldProvider::class, array('getLanguageService'));
index f2f4096..b640eaa 100644 (file)
@@ -30,7 +30,7 @@ class CleanerTaskTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
        /**
         * sets up an instance of \TYPO3\CMS\Recycler\Task\CleanerTask
         */
-       public function setUp() {
+       protected function setUp() {
                $this->subject = $this->getMock(CleanerTask::class, array('dummy'), array(), '', FALSE);
        }
 
index cb5699f..f4db725 100644 (file)
@@ -28,7 +28,7 @@ class ActionHandlerTest extends \TYPO3\CMS\Core\Tests\FunctionalTestCase {
         *
         * @return void
         */
-       public function setUp() {
+       protected function setUp() {
                parent::setUp();
                $this->setUpBackendUserFromFixture(1);
                \TYPO3\CMS\Core\Core\Bootstrap::getInstance()->initializeLanguageObject();