mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-09-10 17:31:58 +03:00
Merge branch 'master' of https://github.com/OsmosysSoftware/BookStack
This commit is contained in:
@@ -94,12 +94,12 @@ class UserProfileTest extends BrowserKitTest
|
|||||||
->seePageIs('/settings/users/' . $guestUser->id)
|
->seePageIs('/settings/users/' . $guestUser->id)
|
||||||
->see('cannot delete the guest user');
|
->see('cannot delete the guest user');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_books_display_is_list()
|
public function test_books_display_is_list()
|
||||||
{
|
{
|
||||||
$this->asAdmin()
|
$this->asAdmin()
|
||||||
->visit('/settings/users/' . $this->user->id)
|
->visit('/settings/users/' . $this->user->id)
|
||||||
->select('#books_display', 'List')
|
->select('grid', '#books_display')
|
||||||
->press('Save')
|
->press('Save')
|
||||||
->visit('/books')
|
->visit('/books')
|
||||||
->pageHasElement('.entity-list-item');
|
->pageHasElement('.entity-list-item');
|
||||||
@@ -109,7 +109,7 @@ class UserProfileTest extends BrowserKitTest
|
|||||||
{
|
{
|
||||||
$this->asAdmin()
|
$this->asAdmin()
|
||||||
->visit('/settings/users/' . $this->user->id)
|
->visit('/settings/users/' . $this->user->id)
|
||||||
->select('#books_display', 'Grid')
|
->select('list', '#books_display')
|
||||||
->press('Save')
|
->press('Save')
|
||||||
->visit('/books')
|
->visit('/books')
|
||||||
->pageHasElement('.gallery-item');
|
->pageHasElement('.gallery-item');
|
||||||
|
Reference in New Issue
Block a user