From 9b85983753628b954b977ff396850dfee6c3f7f4 Mon Sep 17 00:00:00 2001 From: marcelmanzel Date: Mon, 12 Aug 2024 18:50:28 +0200 Subject: [PATCH] OXDEV-8216: Fix check if ModuleActivationAuthorized --- tests/Codeception/Acceptance/Module/ModuleActivationCest.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/Codeception/Acceptance/Module/ModuleActivationCest.php b/tests/Codeception/Acceptance/Module/ModuleActivationCest.php index 0dd6e61..8164f4c 100644 --- a/tests/Codeception/Acceptance/Module/ModuleActivationCest.php +++ b/tests/Codeception/Acceptance/Module/ModuleActivationCest.php @@ -32,9 +32,7 @@ public function testModuleActivationAuthorized(AcceptanceTester $I, \Codeception field: $example['field'] ); - $I->assertArrayNotHasKey('errors', $result); - $response = $result['data'][$example['queryName']]; - $I->assertTrue($response); + $I->assertNotSame('You do not have sufficient rights to access this field', $result['errors'][0]['message']); } private function runModuleMutation(