1111
1212use PHPUnit \Framework \TestCase ;
1313use WikibaseSolutions \CypherDSL \Clauses \UnionClause ;
14- use WikibaseSolutions \CypherDSL \Query ;
1514
1615/**
1716 * @covers \WikibaseSolutions\CypherDSL\Clauses\UnionClause
@@ -33,32 +32,6 @@ public function testAll(): void
3332 $ this ->assertEquals ('UNION ALL ' , $ union ->toQuery ());
3433 }
3534
36- public function testUnionFactory (): void
37- {
38- $ nodeX = Query::node ('X ' )->withVariable ('x ' );
39- $ nodeY = Query::node ('Y ' )->withVariable ('y ' );
40-
41- $ left = Query::new ()->match ($ nodeX )->returning ($ nodeX ->getVariable ());
42- $ right = Query::new ()->match ($ nodeY )->returning ($ nodeY ->getVariable ());
43-
44- $ query = UnionClause::union ($ left , $ right );
45-
46- $ this ->assertEquals ('MATCH (x:X) RETURN x UNION MATCH (y:Y) RETURN y ' , $ query ->toQuery ());
47- }
48-
49- public function testUnionFactoryAll (): void
50- {
51- $ nodeX = Query::node ('X ' )->withVariable ('x ' );
52- $ nodeY = Query::node ('Y ' )->withVariable ('y ' );
53-
54- $ left = Query::new ()->match ($ nodeX )->returning ($ nodeX ->getVariable ());
55- $ right = Query::new ()->match ($ nodeY )->returning ($ nodeY ->getVariable ());
56-
57- $ query = UnionClause::union ($ left , $ right , true );
58-
59- $ this ->assertEquals ('MATCH (x:X) RETURN x UNION ALL MATCH (y:Y) RETURN y ' , $ query ->toQuery ());
60- }
61-
6235 public function testSetAllDefaultIsTrue (): void
6336 {
6437 $ union = new UnionClause ();
0 commit comments