diff --git a/tests/ViewFunctions/ModifiedTimeTest.php b/tests/ViewFunctions/ModifiedTimeTest.php index 0cbcb3c..29abf1f 100644 --- a/tests/ViewFunctions/ModifiedTimeTest.php +++ b/tests/ViewFunctions/ModifiedTimeTest.php @@ -3,7 +3,6 @@ namespace Tests\ViewFunctions; use App\ViewFunctions\ModifiedTime; -use RuntimeException; use Symfony\Component\Finder\SplFileInfo; use Tests\TestCase; @@ -18,15 +17,4 @@ class ModifiedTimeTest extends TestCase $this->assertEquals('1986-05-20 12:34:56', $modifiedTime($file)); } - - public function test_it_can_return_the_modified_time_for_a_symlink(): void - { - $file = $this->createMock(SplFileInfo::class); - $file->method('getMTime')->willThrowException(new RuntimeException); - $file->method('getPathname')->willReturn(dirname(__DIR__) . '/_files/somedir/broken.symlink'); - - $modifiedTime = new ModifiedTime($this->config); - - $this->assertEquals('1986-05-20 12:34:56', $modifiedTime($file)); - } }