Neos\Eel\Tests\Unit\FlowQuery\Operations\AddOperationTest::addWithNodeArgumentAppendsToCurrentContext PHP Метод

addWithNodeArgumentAppendsToCurrentContext() публичный Метод

This corresponds to ${q(node).add(someOtherNode)}
    public function addWithNodeArgumentAppendsToCurrentContext()
    {
        $object1 = new \stdClass();
        $object2 = new \stdClass();
        $flowQuery = new FlowQuery([$object1]);
        $nodeArgument = $object2;
        $arguments = [$nodeArgument];
        $operation = new AddOperation();
        $operation->evaluate($flowQuery, $arguments);
        $this->assertSame([$object1, $object2], $flowQuery->getContext());
    }