mirror of
https://github.com/shlinkio/shlink.git
synced 2025-01-22 06:23:20 -06:00
Fixed unit tests
This commit is contained in:
parent
e093480a5b
commit
c622804950
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user