diff --git a/tests/Builder/BuilderEncoderTest.php b/tests/Builder/BuilderEncoderTest.php index 9759ad2..5593115 100644 --- a/tests/Builder/BuilderEncoderTest.php +++ b/tests/Builder/BuilderEncoderTest.php @@ -209,15 +209,12 @@ public function testSetWindowFields(): void public function testUnionWith(): void { - $unionWith = Stage::unionWith(...); - $match = Stage::match(...); - $project = Stage::project(...); $pipeline = new Pipeline( - $unionWith( + Stage::unionWith( coll: 'orders', pipeline: new Pipeline( - $match(status: 'A'), - $project( + Stage::match(status: 'A'), + Stage::project( item: 1, status: 1, ),