]> BookStack Code Mirror - bookstack/blobdiff - tests/UserProfileTest.php
Added migration file.
[bookstack] / tests / UserProfileTest.php
index e0c87d992abdb6f6a301d55dabd69f55ab0226cb..eabfce00409ea5c569c44634a5989d8fa94e395d 100644 (file)
@@ -95,26 +95,26 @@ class UserProfileTest extends BrowserKitTest
             ->see('cannot delete the guest user');
     }
 
-    public function test_books_display_is_list()
+    public function test_books_view_is_list()
     {
         $editor = $this->getEditor([
-          'books_display' => 'list'
+          'books_view_type' => 'list'
         ]);
 
         $this->actingAs($editor)
             ->visit('/books')
-            ->pageNotHasElement('.gallery-item')
+            ->pageNotHasElement('.featured-image-container')
             ->pageHasElement('.entity-list-item');
     }
 
-    public function test_books_display_is_grid()
+    public function test_books_view_is_grid()
     {
         $editor = $this->getEditor([
-          'books_display' => 'grid'
+          'books_view_type' => 'grid'
         ]);
 
         $this->actingAs($editor)
             ->visit('/books')
-            ->pageHasElement('.gallery-item');
+            ->pageHasElement('.featured-image-container');
     }
 }