mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-01-03 23:42:28 +03:00
Copied over work from user_permissions branch
Only that relevant to the additional testing work.
This commit is contained in:
@@ -12,7 +12,7 @@ trait TestsApi
|
||||
*/
|
||||
protected function actingAsApiEditor()
|
||||
{
|
||||
$this->actingAs($this->getEditor(), 'api');
|
||||
$this->actingAs($this->users->editor(), 'api');
|
||||
|
||||
return $this;
|
||||
}
|
||||
@@ -22,7 +22,7 @@ trait TestsApi
|
||||
*/
|
||||
protected function actingAsApiAdmin()
|
||||
{
|
||||
$this->actingAs($this->getAdmin(), 'api');
|
||||
$this->actingAs($this->users->admin(), 'api');
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user