Skip to content

Commit f4c682c

Browse files
authored
Merge pull request #1 from punktDe/theApiResponseShouldReturnJsonStringWithFields-function-can-handle-bool-values
TASK: modify theApiResponseShouldReturnJsonStringWithFields function
2 parents c152255 + cbaf9fc commit f4c682c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Classes/ActorTraits/Rest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ public function theApiResponseIsValidJson()
5858
public function theApiResponseShouldReturnJsonStringWithFields(TableNode $table)
5959
{
6060
foreach ($table->getRows() as $index => $row) {
61+
$row[1] = $row[1] === 'true' ? true : $row[1];
62+
$row[1] = $row[1] === 'false' ? false : $row[1];
6163
$this->seeResponseContainsJson([$row[0] => $row[1]]);
6264
}
6365
}

0 commit comments

Comments
 (0)