Use triats in correct way (#6430)

This commit is contained in:
Sagar Gurung
2023-06-02 14:36:05 +05:45
committed by GitHub
parent d35f413abf
commit b18ac5d46b
4 changed files with 8 additions and 10 deletions
@@ -13,7 +13,6 @@ use Behat\Behat\Hook\Scope\BeforeScenarioScope;
use Behat\Gherkin\Node\PyStringNode;
use Behat\Gherkin\Node\TableNode;
use GuzzleHttp\Exception\GuzzleException;
use Helmich\JsonAssert\JsonAssertions;
use Psr\Http\Message\ResponseInterface;
use TestHelpers\GraphHelper;
use TestHelpers\WebDavHelper;
@@ -2035,7 +2034,7 @@ class GraphContext implements Context {
!$shouldContain && $userOrGroupFound,
'Response contains user or group "' . $userOrGroup . '" but should not have.'
);
JsonAssertions::assertJsonDocumentMatchesSchema(
$this->featureContext->assertJsonDocumentMatchesSchema(
$responseBody,
$this->featureContext->getJSONSchema($schemaString)
);
@@ -2371,7 +2370,7 @@ class GraphContext implements Context {
"Response does not contain event type '" . $eventType . "'."
);
}
JsonAssertions::assertJsonDocumentMatchesSchema(
$this->featureContext->assertJsonDocumentMatchesSchema(
$actualResponseToAssert,
$this->featureContext->getJSONSchema($schemaString)
);
@@ -2393,7 +2392,7 @@ class GraphContext implements Context {
"Response does not contain key 'user'"
);
}
JsonAssertions::assertJsonDocumentMatchesSchema(
$this->featureContext->assertJsonDocumentMatchesSchema(
$actualResponseToAssert->user,
$this->featureContext->getJSONSchema($schemaString)
);