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 0db3f69 commit 3a7c071Copy full SHA for 3a7c071
1 file changed
tests/Assets/AssetTest.php
@@ -664,10 +664,14 @@ public function it_gets_last_modified_time()
664
}
665
666
#[Test]
667
- public function it_does_not_throw_when_last_modified_meta_is_missing()
+ public function it_does_not_throw_when_getting_last_modified_and_file_doesnt_exist()
668
{
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
+
673
Storage::fake('test');
- Storage::disk('test')->put('foo/test.txt', '');
674
+ // Intentionally do no not create the actual file.
675
676
$asset = (new Asset)->container($this->container)->path('foo/test.txt');
677
0 commit comments