]> BookStack Code Mirror - bookstack/blobdiff - tests/Entity/BookShelfTest.php
Add footer element, styles, and associated settings
[bookstack] / tests / Entity / BookShelfTest.php
index b447612031d69c9cbcd2250c65b047617420e017..a318ebe24e5be48cd29b7559c25679db6d02e44a 100644 (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);