mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-30 04:23:11 +03:00
Extracted entity testcase methods to own class
Also added some new fetch helper methods for future use.
This commit is contained in:
@ -177,7 +177,7 @@ class PublicActionTest extends TestCase
|
||||
$this->setSettings(['app-public' => 'true']);
|
||||
/** @var Book $book */
|
||||
$book = Book::query()->first();
|
||||
$this->setEntityRestrictions($book);
|
||||
$this->entities->setPermissions($book);
|
||||
|
||||
$resp = $this->get($book->getUrl());
|
||||
$resp->assertSee('Book not found');
|
||||
|
Reference in New Issue
Block a user