Neos\ContentRepository\Tests\Unit\FlowQueryOperations\PrevAllOperationTest::prevAllWillReturnFirstNodeAndSecondNodeInLevelForThirdNodeInLevel PHP Метод

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

    public function prevAllWillReturnFirstNodeAndSecondNodeInLevelForThirdNodeInLevel()
    {
        $context = array($this->thirdNodeInLevel);
        $q = new FlowQuery($context);
        $operation = new PrevAllOperation();
        $operation->evaluate($q, array());
        $output = $q->getContext();
        $this->assertEquals(array($this->firstNodeInLevel, $this->secondNodeInLevel), $output);
    }