Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions tests/acceptance/features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
* Defines application features from the specific context.
*/
class FeatureContext implements Context {
use JsonAssertions;

/**
* list of users that were created on the local server during test runs
* key is the lowercase username, value is an array of user attributes
Expand Down Expand Up @@ -692,7 +694,7 @@ public function theDataOfTheOCSResponseShouldMatch(
): void {
$responseAsJson = json_decode($this->response->getBody()->getContents());
$_responseAsJson = $responseAsJson->ocs->data;
JsonAssertions::assertJsonDocumentMatchesSchema(
self::assertJsonDocumentMatchesSchema(
$_responseAsJson,
$this->getJSONSchema($schemaString)
);
Expand All @@ -708,7 +710,7 @@ public function theDataOfTheResponseShouldMatch(
PyStringNode $schemaString
): void {
$_responseAsJson = json_decode($this->response->getBody()->getContents());
JsonAssertions::assertJsonDocumentMatchesSchema(
self::assertJsonDocumentMatchesSchema(
$_responseAsJson,
$this->getJSONSchema($schemaString)
);
Expand Down Expand Up @@ -790,7 +792,7 @@ function ($matches) {

$input = str_replace(
"%last-created-direct-upload-token%",
$this->directUploadContext->getLastCreatedDirectUploadToken(),
(string)$this->directUploadContext->getLastCreatedDirectUploadToken(),
$input
);
return $input;
Expand Down