[TASK] Use name-resolution instead of strings where possible: 3
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Unit / Domain / Repository / CategoryRepositoryTest.php
index 9b9dfc7..3571e39 100644 (file)
@@ -25,7 +25,7 @@ class CategoryRepositoryTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
        protected $fixture = NULL;
 
        protected function setUp() {
-               $this->fixture = new \TYPO3\CMS\Extbase\Domain\Repository\CategoryRepository($this->getMock('TYPO3\\CMS\\Extbase\\Object\\ObjectManagerInterface'));
+               $this->fixture = new \TYPO3\CMS\Extbase\Domain\Repository\CategoryRepository($this->getMock(\TYPO3\CMS\Extbase\Object\ObjectManagerInterface::class));
        }
 
        /**
@@ -33,11 +33,11 @@ class CategoryRepositoryTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
         */
        public function initializeObjectSetsRespectStoragePidToFalse() {
                /** @var $objectManager \TYPO3\CMS\Extbase\Object\ObjectManagerInterface */
-               $objectManager = $this->getMock('TYPO3\\CMS\\Extbase\\Object\\ObjectManagerInterface');
+               $objectManager = $this->getMock(\TYPO3\CMS\Extbase\Object\ObjectManagerInterface::class);
                $fixture = new \TYPO3\CMS\Extbase\Domain\Repository\CategoryRepository($objectManager);
-               $querySettings = $this->getMock('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Typo3QuerySettings');
+               $querySettings = $this->getMock(\TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings::class);
                $querySettings->expects($this->once())->method('setRespectStoragePage')->with(FALSE);
-               $objectManager->expects($this->once())->method('get')->with('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Typo3QuerySettings')->will($this->returnValue($querySettings));
+               $objectManager->expects($this->once())->method('get')->with(\TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings::class)->will($this->returnValue($querySettings));
                $fixture->initializeObject();
        }
 }