Skip to content

Commit 0db3f69

Browse files
committed
Fix test to not assert fragile timestamp value
1 parent ad33864 commit 0db3f69

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

tests/Assets/AssetTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -664,19 +664,15 @@ public function it_gets_last_modified_time()
664664
}
665665

666666
#[Test]
667-
public function it_returns_epoch_when_last_modified_meta_is_null()
667+
public function it_does_not_throw_when_last_modified_meta_is_missing()
668668
{
669669
Storage::fake('test');
670670
Storage::disk('test')->put('foo/test.txt', '');
671-
Storage::disk('test')->put('foo/.meta/test.txt.yaml', YAML::dump([
672-
'data' => [],
673-
]));
674671

675672
$asset = (new Asset)->container($this->container)->path('foo/test.txt');
676673

677674
$lastModified = $asset->lastModified();
678675
$this->assertInstanceOf(Carbon::class, $lastModified);
679-
$this->assertEquals(0, $lastModified->timestamp);
680676
}
681677

682678
#[Test]

0 commit comments

Comments
 (0)