/**
  * This corresponds to ${q(node).add([someOtherNode, ...]))}
  *
  * @test
  */
 public function addWithArrayArgumentAppendsToCurrentContext()
 {
     $mockNode1 = $this->getMock('TYPO3\\TYPO3CR\\Domain\\Model\\NodeInterface');
     $mockNode2 = $this->getMock('TYPO3\\TYPO3CR\\Domain\\Model\\NodeInterface');
     $flowQuery = new \TYPO3\Eel\FlowQuery\FlowQuery(array($mockNode1));
     $arrayArgument = array($mockNode2);
     $arguments = array($arrayArgument);
     $operation = new AddOperation();
     $operation->evaluate($flowQuery, $arguments);
     $this->assertSame(array($mockNode1, $mockNode2), $flowQuery->getContext());
 }
 /**
  * This corresponds to ${q(node).add([someOtherNode, ...]))}
  *
  * @test
  */
 public function addWithArrayArgumentAppendsToCurrentContext()
 {
     $object1 = new \stdClass();
     $object2 = new \stdClass();
     $flowQuery = new FlowQuery(array($object1));
     $arrayArgument = array($object2);
     $arguments = array($arrayArgument);
     $operation = new AddOperation();
     $operation->evaluate($flowQuery, $arguments);
     $this->assertSame(array($object1, $object2), $flowQuery->getContext());
 }