We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9daa84 commit a730cafCopy full SHA for a730caf
tests/Unit/Patterns/PathTest.php
@@ -57,5 +57,23 @@ public function testRelationshipLong(): void
57
->named('a');
58
59
self::assertEquals('a = ()-[]-(:Label)-[]->(b)<-[c:TYPE {x: \'y\'}]-()-[]-(d)', $path->toQuery());
60
+
61
+ self::assertEquals([
62
+ new Node(),
63
+ new Node('Label'),
64
+ (new Node())->named('b'),
65
66
+ (new Node())->named('d')
67
+ ], $path->getNodes());
68
69
70
+ new Relationship(Relationship::DIR_UNI),
71
+ new Relationship(Relationship::DIR_RIGHT),
72
+ (new Relationship(Relationship::DIR_LEFT))
73
+ ->withType('TYPE')
74
+ ->withProperties(['x' => Query::literal('y')])
75
+ ->named('c'),
76
+ new Relationship(Relationship::DIR_UNI)
77
+ ], $path->getRelationships());
78
}
79
0 commit comments