From f8b0f69dd043745248387a7fe29d5286ac2119d6 Mon Sep 17 00:00:00 2001 From: Dipak Acharya Date: Wed, 17 Nov 2021 15:07:25 +0545 Subject: [PATCH] [Test-Only] enforce strict type checking for php api tests --- tests/acceptance/features/bootstrap/ArchiverContext.php | 4 ++-- tests/acceptance/features/bootstrap/RevaContext.php | 2 +- tests/acceptance/features/bootstrap/SpacesContext.php | 4 ++-- tests/acceptance/features/bootstrap/bootstrap.php | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/acceptance/features/bootstrap/ArchiverContext.php b/tests/acceptance/features/bootstrap/ArchiverContext.php index dd93dc834..4ebd96b26 100644 --- a/tests/acceptance/features/bootstrap/ArchiverContext.php +++ b/tests/acceptance/features/bootstrap/ArchiverContext.php @@ -1,4 +1,4 @@ -featureContext->verifyTableNodeColumns($expectedFiles, ['name', 'content']); $tempFile = \tempnam(\sys_get_temp_dir(), 'OcAcceptanceTests_'); \unlink($tempFile); // we only need the name diff --git a/tests/acceptance/features/bootstrap/RevaContext.php b/tests/acceptance/features/bootstrap/RevaContext.php index da6aa015e..b74ff023d 100644 --- a/tests/acceptance/features/bootstrap/RevaContext.php +++ b/tests/acceptance/features/bootstrap/RevaContext.php @@ -1,4 +1,4 @@ -featureContext->getResponse()->getBody(), true, 512, JSON_THROW_ON_ERROR); + $response = json_decode((string)$this->featureContext->getResponse()->getBody(), true, 512, JSON_THROW_ON_ERROR); $spaceAsArray = $response; if (isset($response['name']) && $response['name'] === $name) { return $response; diff --git a/tests/acceptance/features/bootstrap/bootstrap.php b/tests/acceptance/features/bootstrap/bootstrap.php index 7d4158c2b..ec7e80734 100644 --- a/tests/acceptance/features/bootstrap/bootstrap.php +++ b/tests/acceptance/features/bootstrap/bootstrap.php @@ -1,4 +1,4 @@ -