]> BookStack Code Mirror - bookstack/blobdiff - tests/UserProfileTest.php
Converted books view setting to user setting
[bookstack] / tests / UserProfileTest.php
index 4636fc76cf5b3747fed6a0ae45a6357896c9a7f6..0c66363f0b34a0e8c241108d8675b7a29ca67105 100644 (file)
@@ -97,9 +97,8 @@ class UserProfileTest extends BrowserKitTest
 
     public function test_books_view_is_list()
     {
-        $editor = $this->getEditor([
-          'books_view_type' => 'list'
-        ]);
+        $editor = $this->getEditor();
+        setting()->putUser($editor, 'books_view_type', 'list');
 
         $this->actingAs($editor)
             ->visit('/books')
@@ -109,9 +108,8 @@ class UserProfileTest extends BrowserKitTest
 
     public function test_books_view_is_grid()
     {
-        $editor = $this->getEditor([
-          'books_view_type' => 'grid'
-        ]);
+        $editor = $this->getEditor();
+        setting()->putUser($editor, 'books_view_type', 'grid');
 
         $this->actingAs($editor)
             ->visit('/books')