Skip to content

Commit

Permalink
fixed broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
transistive committed Sep 21, 2023
1 parent 8696095 commit 40a803b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/Integration/OGMFormatterIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ public function testMap(): void
{
$map = $this->getSession()->transaction(static fn (TransactionInterface $tsx) => $tsx->run('RETURN {a: "b", c: "d"} as map')->first()->get('map'));
self::assertInstanceOf(CypherMap::class, $map);
self::assertEqualsCanonicalizing(['a' => 'b', 'c' => 'd'], $map->toArray());
self::assertEqualsCanonicalizing(json_encode(['a' => 'b', 'c' => 'd'], JSON_THROW_ON_ERROR), json_encode($map, JSON_THROW_ON_ERROR));
$array = $map->toArray();
ksort($array);
self::assertEquals(['a' => 'b', 'c' => 'd'], $array);
}

public function testBoolean(): void
Expand Down

0 comments on commit 40a803b

Please sign in to comment.