Skip to content

Commit 89c5517

Browse files
committed
fix Mercure
1 parent b0abc4f commit 89c5517

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/Behat/MercureContext.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ public function mercureUpdateShouldHaveData(int $index, PyStringNode $data): voi
103103
}
104104
/** @var Update $update */
105105
$update = $updates[$index - 1];
106-
Assert::assertJsonStringEqualsJsonString($data->getRaw(), $update->getData());
106+
107+
$expectedData = json_decode($data->getRaw(), true, 512, \JSON_THROW_ON_ERROR);
108+
$actualData = json_decode($update->getData(), true, 512, \JSON_THROW_ON_ERROR);
109+
Assert::assertEquals($expectedData, $actualData);
107110
}
108111

109112
/**

0 commit comments

Comments
 (0)