Fix bug in getImageUrl method
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user