1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-07 23:03:00 +03:00

Converted another couple of tests from browserkit

This commit is contained in:
Dan Brown
2021-05-29 23:42:21 +01:00
parent d62cdd58d3
commit 1fa90e4f12
5 changed files with 160 additions and 128 deletions

View File

@@ -82,6 +82,14 @@ trait SharedTestHelpers
return $user;
}
/**
* Get a user that's not a system user such as the guest user.
*/
public function getNormalUser()
{
return User::query()->where('system_name', '=', null)->get()->last();
}
/**
* Regenerate the permission for an entity.
*/