Converted books view setting to user setting

Also cleaned up/moved new CSS and removed redundant new book methods.
This commit is contained in:
Dan Brown
2017-12-06 16:34:26 +00:00
parent bc1302a8d8
commit 261e57fc4e
11 changed files with 75 additions and 134 deletions

View 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')