[TASK] Use name-resolution instead of strings where possible: 3
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Unit / Persistence / Generic / SessionTest.php
index 2c29b7a..f662d94 100644 (file)
@@ -124,7 +124,7 @@ class SessionTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
         */
        public function objectCanBeRegisteredAsReconstituted() {
                $persistenceSession = new \TYPO3\CMS\Extbase\Persistence\Generic\Session();
-               $entity = $this->getMock('TYPO3\\CMS\\Extbase\\DomainObject\\AbstractEntity');
+               $entity = $this->getMock(\TYPO3\CMS\Extbase\DomainObject\AbstractEntity::class);
                $persistenceSession->registerReconstitutedEntity($entity);
                $reconstitutedObjects = $persistenceSession->getReconstitutedEntities();
                $this->assertTrue($reconstitutedObjects->contains($entity), 'The object was not registered as reconstituted.');
@@ -135,7 +135,7 @@ class SessionTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
         */
        public function objectCanBeUnregisteredAsReconstituted() {
                $persistenceSession = new \TYPO3\CMS\Extbase\Persistence\Generic\Session();
-               $entity = $this->getMock('TYPO3\\CMS\\Extbase\\DomainObject\\AbstractEntity');
+               $entity = $this->getMock(\TYPO3\CMS\Extbase\DomainObject\AbstractEntity::class);
                $persistenceSession->registerReconstitutedEntity($entity);
                $persistenceSession->unregisterReconstitutedEntity($entity);
                $reconstitutedObjects = $persistenceSession->getReconstitutedEntities();