Added auditAssets()
to user factory
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
95fef9682f
commit
c344c40310
1 changed files with 6 additions and 0 deletions
|
@ -385,6 +385,12 @@ class UserFactory extends Factory
|
|||
return $this->appendPermission(['suppliers.delete' => '1']);
|
||||
}
|
||||
|
||||
public function auditAssets()
|
||||
{
|
||||
return $this->appendPermission(['assets.audit' => '1']);
|
||||
}
|
||||
|
||||
|
||||
private function appendPermission(array $permission)
|
||||
{
|
||||
return $this->state(function ($currentState) use ($permission) {
|
||||
|
|
Loading…
Add table
Reference in a new issue