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
@@ -52,6 +52,7 @@ class FeatureContext extends BehatVariablesContext {
use Provisioning;
use Sharing;
use WebDav;
use JsonAssertions;
/**
* Unix timestamp seconds
@@ -1360,7 +1361,7 @@ class FeatureContext extends BehatVariablesContext {
PyStringNode $schemaString
): void {
$jsonResponse = $this->getJsonDecodedResponseBodyContent();
JsonAssertions::assertJsonDocumentMatchesSchema(
$this->assertJsonDocumentMatchesSchema(
$jsonResponse->ocs->data,
$this->getJSONSchema($schemaString)
);
@@ -1377,7 +1378,7 @@ class FeatureContext extends BehatVariablesContext {
*/
public function theDataOfTheResponseShouldMatch(PyStringNode $schemaString): void {
$responseBody = $this->getJsonDecodedResponseBodyContent();
JsonAssertions::assertJsonDocumentMatchesSchema(
$this->assertJsonDocumentMatchesSchema(
$responseBody,
$this->getJSONSchema($schemaString)
);