Skip to content

Commit 01eb431

Browse files
committed
make api compatible with 5.3
1 parent b48e005 commit 01eb431

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/GeneralGraphExtendedTest.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -699,9 +699,9 @@ public function testGetCommonNeighborVertices()
699699
),
700700
array("_id" => $this->v1 . "/" . $this->vertex7Array["_key"])
701701
);
702-
703-
$this->assertTrue($e->getMetadata()["hasMore"]);
704-
$this->assertTrue($e->getMetadata()["count"] === 2);
702+
$meta = $e->getMetadata();
703+
$this->assertTrue($meta["hasMore"]);
704+
$this->assertTrue($meta["count"] === 2);
705705

706706

707707
}
@@ -734,8 +734,9 @@ public function testGetCommonProperties()
734734
$this->graphHandler->setCount(true);
735735
$this->graphHandler->setLimit(2);
736736
$e = $this->graphHandler->getCommonProperties($this->graphName);
737-
$this->assertTrue($e->getMetadata()["hasMore"]);
738-
$this->assertTrue($e->getMetadata()["count"] === 2);
737+
$meta = $e->getMetadata();
738+
$this->assertTrue($meta["hasMore"]);
739+
$this->assertTrue($meta["count"] === 2);
739740

740741
}
741742

0 commit comments

Comments
 (0)