mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-05 09:34:37 +08:00
Made adjustments to fit copied work into dev branch
Ported non-compatible elements, Now all tests passing apart from some specific permission scenario tests which are probably correctly failing. Updates some tests to better avoid messing environment state.
This commit is contained in:
@ -21,6 +21,7 @@ class BookShelfTest extends TestCase
|
||||
$this->withHtml($resp)->assertElementContains('header', 'Shelves');
|
||||
|
||||
$viewer->roles()->delete();
|
||||
$this->permissions->grantUserRolePermissions($viewer, []);
|
||||
$resp = $this->actingAs($viewer)->get('/');
|
||||
$this->withHtml($resp)->assertElementNotContains('header', 'Shelves');
|
||||
|
||||
|
Reference in New Issue
Block a user