Fixed API tests

This commit is contained in:
Alejandro Celaya
2021-02-26 20:24:57 +01:00
parent 1498b72966
commit e093480a5b
9 changed files with 17 additions and 14 deletions

View File

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