1
0
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:
Dan Brown
2020-02-15 18:38:36 +00:00
parent 98ab3c1ffb
commit 5978d9a0d3
4 changed files with 4 additions and 4 deletions

View File

@ -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);