[TASK] Shorten the extend class in all unit tests
[Packages/TYPO3.CMS.git] / typo3 / sysext / beuser / Tests / Unit / Domain / Repository / BackendUserSessionRepositoryTest.php
index 70adc69..74ea732 100644 (file)
@@ -14,17 +14,19 @@ namespace TYPO3\CMS\Beuser\Tests\Unit\Domain\Repository;
  * The TYPO3 project - inspiring people to share!
  */
 
+use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
+
 /**
  * Test case
  */
-class BackendUserSessionRepositoryTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
+class BackendUserSessionRepositoryTest extends UnitTestCase
 {
     /**
      * @test
      */
     public function classCanBeInstantiated()
     {
-        $objectManager = $this->getMock(\TYPO3\CMS\Extbase\Object\ObjectManagerInterface::class);
+        $objectManager = $this->getMockBuilder(\TYPO3\CMS\Extbase\Object\ObjectManagerInterface::class)->getMock();
         new \TYPO3\CMS\Beuser\Domain\Repository\BackendUserSessionRepository($objectManager);
     }
 }