[tests-only] use new json schema assertion lib that supports latest schema drafts (#8503)
* test(api): use new json schema assertion lib that supports latest schema drafts * test(api): fix json schema * test(api): fix method call * test(api): update expected failure lines * test(api): add custom schema validator * test(api): add custom schema validator * test(api): add custom schema validator * test(api): add custom schema validator * test(api): make json array validation strict * test(api): fix php code style * test(api): update expected failure lines
This commit is contained in:
@@ -206,7 +206,11 @@ class GraphContext implements Context {
|
||||
*/
|
||||
public function theUserInformationShouldMatchTheJSON(string $user, PyStringNode $schemaString): void {
|
||||
$response = $this->adminHasRetrievedUserUsingTheGraphApi($user);
|
||||
$this->featureContext->theDataOfTheResponseShouldMatch($schemaString, $response);
|
||||
$responseBody = $this->featureContext->getJsonDecodedResponseBodyContent($response);
|
||||
$this->featureContext->assertJsonDocumentMatchesSchema(
|
||||
$responseBody,
|
||||
$this->featureContext->getJSONSchema($schemaString)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user