mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-31 15:24:31 +03:00
Updated cover image methods so image parameter is not optional but still nullable
This commit is contained in:
@ -100,7 +100,7 @@ class BookShelfTest extends TestCase
|
||||
$lastImage = Image::query()->orderByDesc('id')->firstOrFail();
|
||||
$shelf = Bookshelf::query()->where('name', '=', $shelfInfo['name'])->first();
|
||||
$this->assertDatabaseHas('bookshelves', [
|
||||
'id' => $shelf,
|
||||
'id' => $shelf->id,
|
||||
'image_id' => $lastImage->id,
|
||||
]);
|
||||
$this->assertEquals($lastImage->id, $shelf->cover->id);
|
||||
|
Reference in New Issue
Block a user