File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,8 @@ private function interpretResponse(ResponseInterface $response): array
129
129
*/
130
130
public function runOverTransaction (TransactionInterface $ transaction , iterable $ statements ): Vector
131
131
{
132
- $ request = $ this ->factory ->post ($ this ->data , $ statements );
132
+ $ data = $ this ->data ->withEndpoint ($ transaction ->getDomainIdentifier ());
133
+ $ request = $ this ->factory ->post ($ data , $ statements );
133
134
$ response = $ this ->client ->sendRequest ($ request );
134
135
$ data = $ this ->interpretResponse ($ response );
135
136
Original file line number Diff line number Diff line change @@ -58,12 +58,15 @@ public function testConsistencyTransaction(string $alias): void
58
58
Statement::create ('CREATE (n:aaa) SET n.name="aaa" return n ' ),
59
59
], $ alias );
60
60
61
+ $ tsx ->run ('CREATE (n:ccc) SET n.name="ccc" ' );
62
+
61
63
$ tsx ->commit ([Statement::create ('CREATE (n:bbb) SET n.name="bbb" return n ' )]);
62
64
63
65
$ results = $ this ->client ->run ('MATCH (n) RETURN n ' , ['name ' => 'bbbb ' ], $ alias );
64
66
65
- self ::assertEquals (2 , $ results ->count ());
67
+ self ::assertEquals (3 , $ results ->count ());
66
68
self ::assertEquals (['name ' => 'aaa ' ], $ results ->first ()->get ('n ' ));
69
+ self ::assertEquals (['name ' => 'ccc ' ], $ results ->get (1 )->get ('n ' ));
67
70
self ::assertEquals (['name ' => 'bbb ' ], $ results ->last ()->get ('n ' ));
68
71
}
69
72
You can’t perform that action at this time.
0 commit comments