Skip to content

Commit bb8b938

Browse files
committed
setup starting tests
1 parent f7ea3d7 commit bb8b938

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/Integration/Neo4jQueryAPIIntegrationTest.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,21 @@ public function testCounters(): void
4444
$this->assertEquals(1, $result->getQueryCounters()->getNodesCreated());
4545
}
4646

47+
public function testCreateBookmarks(): void
48+
{
49+
$result = $this->api->run(cypher: 'CREATE (x:Node {hello: "world"})');
50+
51+
$bookmarks = $result->getBookmarks();
52+
53+
$result = $this->api->run('CREATE (x:Node {hello: "world2"})');
54+
55+
$bookmarks->addBookmarks($result->getBookmarks());
56+
57+
$result = $this->api->run(cypher: 'MATCH (x:Node {hello: "world2"}) RETURN x', bookmarks: $bookmarks);
58+
59+
$this->assertCount(1, $result);
60+
}
61+
4762
public function testTransactionCommit(): void
4863
{
4964
// Begin a new transaction

0 commit comments

Comments
 (0)