[TASK] Use name-resolution instead of strings where possible: 3
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Functional / Persistence / TranslationTest.php
index ab9aee2..d09504f 100644 (file)
@@ -70,15 +70,15 @@ class TranslationTest extends \TYPO3\CMS\Core\Tests\FunctionalTestCase {
         * Minimal frontent environment to satisfy Extbase Typo3DbBackend
         */
        protected function setUpBasicFrontendEnvironment() {
-               $environmentServiceMock = $this->getMock('TYPO3\\CMS\\Extbase\\Service\\EnvironmentService');
+               $environmentServiceMock = $this->getMock(\TYPO3\CMS\Extbase\Service\EnvironmentService::class);
                $environmentServiceMock
                        ->expects($this->any())
                        ->method('isEnvironmentInFrontendMode')
                        ->willReturn(TRUE);
-               GeneralUtility::setSingletonInstance('TYPO3\\CMS\\Extbase\\Service\\EnvironmentService', $environmentServiceMock);
+               GeneralUtility::setSingletonInstance(\TYPO3\CMS\Extbase\Service\EnvironmentService::class, $environmentServiceMock);
 
                $pageRepositoryFixture = new PageRepository();
-               $frontendControllerMock = $this->getMock('TYPO3\\CMS\\Frontend\\Controller\\TypoScriptFrontendController', array(), array(), '', FALSE);
+               $frontendControllerMock = $this->getMock(\TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::class, array(), array(), '', FALSE);
                $frontendControllerMock->sys_page = $pageRepositoryFixture;
                $GLOBALS['TSFE'] = $frontendControllerMock;
        }