Skip to content

Commit 36c1cc5

Browse files
Remove no-longer-needed tests
1 parent 7f0cb00 commit 36c1cc5

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

tests/unit/Clauses/UnionClauseTest.php

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
use PHPUnit\Framework\TestCase;
1313
use 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

Comments
 (0)