We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad33864 commit 0db3f69Copy full SHA for 0db3f69
1 file changed
tests/Assets/AssetTest.php
@@ -664,19 +664,15 @@ public function it_gets_last_modified_time()
664
}
665
666
#[Test]
667
- public function it_returns_epoch_when_last_modified_meta_is_null()
+ public function it_does_not_throw_when_last_modified_meta_is_missing()
668
{
669
Storage::fake('test');
670
Storage::disk('test')->put('foo/test.txt', '');
671
- Storage::disk('test')->put('foo/.meta/test.txt.yaml', YAML::dump([
672
- 'data' => [],
673
- ]));
674
675
$asset = (new Asset)->container($this->container)->path('foo/test.txt');
676
677
$lastModified = $asset->lastModified();
678
$this->assertInstanceOf(Carbon::class, $lastModified);
679
- $this->assertEquals(0, $lastModified->timestamp);
680
681
682
0 commit comments