@@ -43,6 +43,7 @@ public function testEmptyClause(): void
43
43
$ createClause = new CreateClause ();
44
44
45
45
$ this ->assertSame ("" , $ createClause ->toQuery ());
46
+ $ this ->assertEquals ([], $ createClause ->getPatterns ());
46
47
}
47
48
48
49
public function testSinglePattern (): void
@@ -53,6 +54,7 @@ public function testSinglePattern(): void
53
54
$ createClause ->addPattern ($ pattern );
54
55
55
56
$ this ->assertSame ("CREATE (a) " , $ createClause ->toQuery ());
57
+ $ this ->assertEquals ([$ pattern ], $ createClause ->getPatterns ());
56
58
}
57
59
58
60
public function testMultiplePatterns (): void
@@ -66,11 +68,9 @@ public function testMultiplePatterns(): void
66
68
$ createClause ->addPattern ($ patternB );
67
69
68
70
$ this ->assertSame ("CREATE (a), (b) " , $ createClause ->toQuery ());
71
+ $ this ->assertEquals ([$ patternA , $ patternB ], $ createClause ->getPatterns ());
69
72
}
70
73
71
- /**
72
- * @doesNotPerformAssertions
73
- */
74
74
public function testAcceptsNodeType (): void
75
75
{
76
76
$ createClause = new CreateClause ();
@@ -79,11 +79,10 @@ public function testAcceptsNodeType(): void
79
79
80
80
$ createClause ->addPattern ($ patternA );
81
81
$ createClause ->toQuery ();
82
+
83
+ $ this ->assertEquals ([$ patternA ], $ createClause ->getPatterns ());
82
84
}
83
85
84
- /**
85
- * @doesNotPerformAssertions
86
- */
87
86
public function testAcceptsPathType (): void
88
87
{
89
88
$ createClause = new CreateClause ();
@@ -92,11 +91,9 @@ public function testAcceptsPathType(): void
92
91
93
92
$ createClause ->addPattern ($ patternA );
94
93
$ createClause ->toQuery ();
94
+ $ this ->assertEquals ([$ patternA ], $ createClause ->getPatterns ());
95
95
}
96
96
97
- /**
98
- * @doesNotPerformAssertions
99
- */
100
97
public function testAcceptsAssignment (): void
101
98
{
102
99
$ createClause = new CreateClause ();
@@ -105,6 +102,7 @@ public function testAcceptsAssignment(): void
105
102
106
103
$ createClause ->addPattern ($ patternA );
107
104
$ createClause ->toQuery ();
105
+ $ this ->assertEquals ([$ patternA ], $ createClause ->getPatterns ());
108
106
}
109
107
110
108
public function testDoesNotAcceptAnyType (): void
0 commit comments