Neos\ContentRepository\Tests\Unit\FlowQueryOperations\ParentOperationTest::setUp PHP Method

setUp() public method

public setUp ( )
    public function setUp()
    {
        $this->siteNode = $this->createMock(NodeInterface::class);
        $this->firstLevelNode = $this->createMock(NodeInterface::class);
        $this->secondLevelNode = $this->createMock(NodeInterface::class);
        $this->siteNode->expects($this->any())->method('getPath')->will($this->returnValue('/site'));
        $this->siteNode->expects($this->any())->method('getChildNodes')->will($this->returnValue(array($this->firstLevelNode)));
        $this->mockContext = $this->getMockBuilder(Context::class)->disableOriginalConstructor()->getMock();
        $this->firstLevelNode->expects($this->any())->method('getParent')->will($this->returnValue($this->siteNode));
        $this->firstLevelNode->expects($this->any())->method('getPath')->will($this->returnValue('/site/first'));
        $this->secondLevelNode->expects($this->any())->method('getParent')->will($this->returnValue($this->siteNode));
        $this->secondLevelNode->expects($this->any())->method('getPath')->will($this->returnValue('/site/first/second'));
    }