fix return type

This commit is contained in:
Saw-jan
2023-10-03 16:23:13 +05:45
parent 6e43e1f0ba
commit 6c3f68f8f9
@@ -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',