mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-01-03 23:42:28 +03:00
Refactored permission system components
Split joint permission creation into chunks Fixes #374
This commit is contained in:
@@ -42,7 +42,7 @@ class EntitySearchTest extends TestCase
|
||||
|
||||
public function test_book_search()
|
||||
{
|
||||
$book = \BookStack\Book::all()->first();
|
||||
$book = \BookStack\Book::first();
|
||||
$page = $book->pages->last();
|
||||
$chapter = $book->chapters->last();
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<?php namespace Tests;
|
||||
|
||||
use BookStack\Role;
|
||||
use BookStack\Tag;
|
||||
use BookStack\Page;
|
||||
use BookStack\Services\PermissionService;
|
||||
|
||||
@@ -226,6 +226,7 @@ class RestrictionsTest extends BrowserKitTest
|
||||
->type('test content', 'html')
|
||||
->press('Save Page')
|
||||
->seePageIs($chapter->book->getUrl() . '/page/test-page');
|
||||
|
||||
$this->visit($chapterUrl)->seeInElement('.action-buttons', 'New Page');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user