Enhanced DomainRepositoryTest covering API key permissions

This commit is contained in:
Alejandro Celaya
2021-01-09 13:16:33 +01:00
parent caa1ae0de8
commit bef1b13a33
2 changed files with 46 additions and 15 deletions

View File

@@ -80,7 +80,7 @@ class ApiKey extends AbstractEntity
public function spec(bool $inlined = false): Specification
{
$specs = $this->roles->map(fn (ApiKeyRole $role) => Role::toSpec($role, $inlined));
$specs = $this->roles->map(fn (ApiKeyRole $role) => Role::toSpec($role, $inlined))->getValues();
return Spec::andX(...$specs);
}