Fix bug in getImageUrl method

This commit is contained in:
Marcus Moore
2025-05-12 11:56:40 -07:00
parent 5a6cf2a296
commit 73057454c6
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -239,5 +239,11 @@ class AssetTest extends TestCase
$category->save();
$this->assertFalse($asset->refresh()->getImageUrl());
// handles case where model does not exist
$asset->model_id = 9999999;
$asset->forceSave();
$this->assertFalse($asset->refresh()->getImageUrl());
}
}