Use triats in correct way (#6430)
This commit is contained in:
@@ -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)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user