[TASK] Improve duplicate exception code check
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Unit / Resource / Driver / LocalDriverTest.php
index e219ff6..e419cd7 100644 (file)
@@ -1297,7 +1297,11 @@ class LocalDriverTest extends \TYPO3\CMS\Core\Tests\Unit\Resource\BaseTestCase
             ]
         ]);
         $subject = $this->createDriver([], ['createIdentifierMap']);
-        $subject->expects($this->atLeastOnce())->method('createIdentifierMap')->will($this->throwException(new \TYPO3\CMS\Core\Resource\Exception\FileOperationErrorException()));
+        $subject->expects($this->atLeastOnce())->method('createIdentifierMap')->will(
+            $this->throwException(
+                new \TYPO3\CMS\Core\Resource\Exception\FileOperationErrorException('testing', 1476045666)
+            )
+        );
         $subject->renameFolder('/sourceFolder/', 'newFolder');
         $this->assertFileExists($this->getUrlInMount('/sourceFolder/file'));
     }