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