Fixed unit tests

This commit is contained in:
Alejandro Celaya 2021-02-26 20:27:41 +01:00
parent e093480a5b
commit c622804950

View File

@ -35,7 +35,7 @@ class RoleTest extends TestCase
yield 'inline author role' => [
new ApiKeyRole(Role::AUTHORED_SHORT_URLS, [], $apiKey),
true,
new BelongsToApiKeyInlined($apiKey),
Spec::andX(new BelongsToApiKeyInlined($apiKey)),
];
yield 'not inline author role' => [
new ApiKeyRole(Role::AUTHORED_SHORT_URLS, [], $apiKey),
@ -45,7 +45,7 @@ class RoleTest extends TestCase
yield 'inline domain role' => [
new ApiKeyRole(Role::DOMAIN_SPECIFIC, ['domain_id' => '123'], $apiKey),
true,
new BelongsToDomainInlined('123'),
Spec::andX(new BelongsToDomainInlined('123')),
];
yield 'not inline domain role' => [
new ApiKeyRole(Role::DOMAIN_SPECIFIC, ['domain_id' => '456'], $apiKey),