From c622804950bf5b9f3ad9805fe1202250bf8cb40f Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Fri, 26 Feb 2021 20:27:41 +0100 Subject: [PATCH] Fixed unit tests --- module/Rest/test/ApiKey/RoleTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/Rest/test/ApiKey/RoleTest.php b/module/Rest/test/ApiKey/RoleTest.php index 4cb9ba1b..60a55ca5 100644 --- a/module/Rest/test/ApiKey/RoleTest.php +++ b/module/Rest/test/ApiKey/RoleTest.php @@ -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),