Neos\Eel\Tests\Unit\FlowQuery\Operations\AddOperationTest::addWithArrayArgumentAppendsToCurrentContext PHP Method

addWithArrayArgumentAppendsToCurrentContext() public method

..]))}
    public function addWithArrayArgumentAppendsToCurrentContext()
    {
        $object1 = new \stdClass();
        $object2 = new \stdClass();
        $flowQuery = new FlowQuery([$object1]);
        $arrayArgument = [$object2];
        $arguments = [$arrayArgument];
        $operation = new AddOperation();
        $operation->evaluate($flowQuery, $arguments);
        $this->assertSame([$object1, $object2], $flowQuery->getContext());
    }