File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 26
26
use WikibaseSolutions \CypherDSL \Equality ;
27
27
use WikibaseSolutions \CypherDSL \In ;
28
28
use WikibaseSolutions \CypherDSL \Inequality ;
29
+ use WikibaseSolutions \CypherDSL \IsNotNull ;
30
+ use WikibaseSolutions \CypherDSL \IsNull ;
29
31
use WikibaseSolutions \CypherDSL \Tests \Unit \TestHelper ;
30
32
use WikibaseSolutions \CypherDSL \Traits \PropertyTypeTrait ;
31
33
use WikibaseSolutions \CypherDSL \Types \CompositeTypes \ListType ;
@@ -132,4 +134,22 @@ public function testInNoParentheses(): void
132
134
$ this ->assertEquals ($ this ->a , $ in ->getLeft ());
133
135
$ this ->assertEquals ($ this ->list , $ in ->getRight ());
134
136
}
137
+
138
+ public function testIsNull (): void
139
+ {
140
+ $ test = $ this ->a ->isNull ();
141
+
142
+ $ this ->assertInstanceOf (IsNull::class, $ test );
143
+
144
+ $ this ->assertEquals ($ this ->a , $ test ->getExpression ());
145
+ }
146
+
147
+ public function testIsNotNull (): void
148
+ {
149
+ $ test = $ this ->a ->isNotNull ();
150
+
151
+ $ this ->assertInstanceOf (IsNotNull::class, $ test );
152
+
153
+ $ this ->assertEquals ($ this ->a , $ test ->getExpression ());
154
+ }
135
155
}
You can’t perform that action at this time.
0 commit comments