[TASK] Adapt DriverRegistryTest to the changed behaviour
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Unit / Resource / Driver / DriverRegistryTest.php
index 29abb74..ef03bb9 100644 (file)
@@ -83,11 +83,12 @@ class DriverRegistryTest extends \Tx_Phpunit_TestCase {
        /**
         * @test
         */
-       public function registerDriverClassThrowsExceptionIfShortnameIsAlreadyTaken() {
+       public function registerDriverClassThrowsExceptionIfShortnameIsAlreadyTakenByAnotherDriverClass() {
                $this->setExpectedException('InvalidArgumentException', '', 1314979451);
                $className = $this->getMockClass('TYPO3\\CMS\\Core\\Resource\\Driver\\AbstractDriver');
+               $className2 = '\stdClass';
                $this->fixture->registerDriverClass($className, 'foobar');
-               $this->fixture->registerDriverClass($className, 'foobar');
+               $this->fixture->registerDriverClass($className2, 'foobar');
        }
 
        /**