We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bf0547e + b595471 commit fbbb597Copy full SHA for fbbb597
1 file changed
Classes/ActorTraits/Rest.php
@@ -65,6 +65,7 @@ public function theApiResponseShouldReturnJsonStringWithFields(TableNode $table)
65
foreach ($table->getRows() as $index => $row) {
66
$row[1] = $row[1] === 'true' ? true : $row[1];
67
$row[1] = $row[1] === 'false' ? false : $row[1];
68
+ $row[1] = $row[1] === 'null' ? null : $row[1];
69
$this->seeResponseContainsJson([$row[0] => $row[1]]);
70
}
71
@@ -84,6 +85,7 @@ public function theApiResponseStatusCodeShouldBe(string $statusCode)
84
85
public function theApiResponseJsonPathFieldIsEqual(string $jsonPath, string $value)
86
{
87
$data = $this->grabDataFromResponseByJsonPath($jsonPath);
88
+ $value = $value === 'null' ? null : $value;
89
Assert::assertEquals(
90
$value,
91
$data[0],
0 commit comments