mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-07-17 00:32:36 +00:00
Merge branch 'master' of https://github.com/OsmosysSoftware/BookStack
This commit is contained in:
commit
39b924f158
|
@ -97,10 +97,11 @@ class UserProfileTest extends BrowserKitTest
|
||||||
|
|
||||||
public function test_books_display_is_list()
|
public function test_books_display_is_list()
|
||||||
{
|
{
|
||||||
$this->asAdmin()
|
$editor = $this->getEditor([
|
||||||
->visit('/settings/users/' . $this->user->id)
|
'books_display' => 'list'
|
||||||
->select('list', '#books_display')
|
]);
|
||||||
->press('Save')
|
|
||||||
|
$this->actingAs($editor)
|
||||||
->visit('/books')
|
->visit('/books')
|
||||||
->pageNotHasElement('.gallery-item')
|
->pageNotHasElement('.gallery-item')
|
||||||
->pageHasElement('.entity-list-item');
|
->pageHasElement('.entity-list-item');
|
||||||
|
@ -108,12 +109,12 @@ class UserProfileTest extends BrowserKitTest
|
||||||
|
|
||||||
public function test_books_display_is_grid()
|
public function test_books_display_is_grid()
|
||||||
{
|
{
|
||||||
$this->asAdmin()
|
$editor = $this->getEditor([
|
||||||
->visit('/settings/users/' . $this->user->id)
|
'books_display' => 'grid'
|
||||||
->select('grid', '#books_display')
|
]);
|
||||||
->press('Save')
|
|
||||||
|
$this->actingAs($editor)
|
||||||
->visit('/books')
|
->visit('/books')
|
||||||
->pageNotHasElement('.entity-list-item')
|
|
||||||
->pageHasElement('.gallery-item');
|
->pageHasElement('.gallery-item');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user