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(