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:
Dan Brown
2023-01-21 13:03:47 +00:00
parent c724bfe4d3
commit e2a72d16aa
8 changed files with 31 additions and 413 deletions

View File

@ -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');