From 1278a0b818ec12100b60843ade5d0701429e97b2 Mon Sep 17 00:00:00 2001 From: Nilesh Deepak Date: Sat, 15 Jul 2017 11:40:51 +0530 Subject: [PATCH] Test for layout selection. --- tests/UserProfileTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/UserProfileTest.php b/tests/UserProfileTest.php index 7b500eebb..951837268 100644 --- a/tests/UserProfileTest.php +++ b/tests/UserProfileTest.php @@ -95,21 +95,21 @@ class UserProfileTest extends BrowserKitTest ->see('cannot delete the guest user'); } - public function test_book_display_is_list() + public function test_books_display_is_list() { $this->asAdmin() ->visit('/settings/user/' . $this->user->id) - ->select('book_display', 'List') + ->select('books_display', 'List') ->press('Save') ->visit('/books') ->pageHasElement('.entity-list-item'); } - public function test_book_display_is_grid() + public function test_books_display_is_grid() { $this->asAdmin() ->visit('/settings/user/' . $this->user->id) - ->select('book_display', 'Grid') + ->select('books_display', 'Grid') ->press('Save') ->visit('/books') ->pageHasElement('.gallery-item');