From 6c3f68f8f9230d6a1bd782133f4ff43977c4ae36 Mon Sep 17 00:00:00 2001 From: Saw-jan Date: Tue, 3 Oct 2023 16:23:13 +0545 Subject: [PATCH] fix return type --- .../acceptance/features/bootstrap/CapabilitiesContext.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/acceptance/features/bootstrap/CapabilitiesContext.php b/tests/acceptance/features/bootstrap/CapabilitiesContext.php index 497d68b518..90e1beece1 100644 --- a/tests/acceptance/features/bootstrap/CapabilitiesContext.php +++ b/tests/acceptance/features/bootstrap/CapabilitiesContext.php @@ -24,6 +24,8 @@ use Behat\Behat\Context\Context; use Behat\Behat\Hook\Scope\BeforeScenarioScope; +use Behat\Gherkin\Node\PyStringNode; +use Psr\Http\Message\ResponseInterface; use PHPUnit\Framework\Assert; use TestHelpers\OcsApiHelper; @@ -206,11 +208,11 @@ class CapabilitiesContext implements Context { */ public function statusPhpRespondedShouldMatch(PyStringNode $jsonExpected): void { $jsonExpectedDecoded = \json_decode($jsonExpected->getRaw(), true); - $jsonRespondedDecoded = $this->getJsonDecodedResponse(); + $jsonRespondedDecoded = $this->featureContext->getJsonDecodedResponse(); $response = $this->userGetsCapabilities($this->getAdminUsernameForCapabilitiesCheck()); - $this->theHTTPStatusCodeShouldBe(200, '', $response); - $responseXml = $this->getResponseXml($response)->data->capabilities; + $this->featureContext->theHTTPStatusCodeShouldBe(200, '', $response); + $responseXml = $this->featureContext->getResponseXml($response)->data->capabilities; $edition = $this->getParameterValueFromXml( $responseXml, 'core',