Skip to content

Commit 3a7c071

Browse files
committed
adjust test so it would've actually failed
1 parent 0db3f69 commit 3a7c071

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/Assets/AssetTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,10 +664,14 @@ public function it_gets_last_modified_time()
664664
}
665665

666666
#[Test]
667-
public function it_does_not_throw_when_last_modified_meta_is_missing()
667+
public function it_does_not_throw_when_getting_last_modified_and_file_doesnt_exist()
668668
{
669+
// This is really a workaround for an underlying bug.
670+
// It's odd for an asset to not have a corresponding file.
671+
// Once resolved, this test could be removed, although it doesn't hurt by being here.
672+
669673
Storage::fake('test');
670-
Storage::disk('test')->put('foo/test.txt', '');
674+
// Intentionally do no not create the actual file.
671675

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

0 commit comments

Comments
 (0)