Skip to content

Commit

Permalink
OXDEV-7557 Cleanup ModuleSettingCest
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Fedurtsya <[email protected]>
  • Loading branch information
Sieg committed Nov 13, 2023
1 parent 9f29e9d commit 09607c4
Show file tree
Hide file tree
Showing 2 changed files with 211 additions and 209 deletions.
12 changes: 12 additions & 0 deletions tests/Codeception/Acceptance/BaseCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,16 @@ protected function getAdminPassword(): string
{
return self::ADMIN_PASSWORD;
}

protected function assertQueryNotFoundErrorInResult(AcceptanceTester $I, array $result, string $query): void
{
$errorMessage = $result['errors'][0]['message'];
$I->assertSame('Cannot query field "' . $query . '" on type "Query".', $errorMessage);
}

protected function assertMutationNotFoundErrorInResult(AcceptanceTester $I, array $result, string $mutation): void
{
$errorMessage = $result['errors'][0]['message'];
$I->assertSame('Cannot query field "' . $mutation . '" on type "Mutation".', $errorMessage);
}
}
Loading

0 comments on commit 09607c4

Please sign in to comment.