FluidTYPO3\Flux\Tests\Unit\View\PreviewViewTest::testParseGridColumnTemplate PHP Method

testParseGridColumnTemplate() public method

    public function testParseGridColumnTemplate()
    {
        $column = $this->getMock('FluidTYPO3\\Flux\\Form\\Container\\Column', array('getColspan', 'getRowspan', 'getStyle', 'getLabel'));
        $column->expects($this->once())->method('getColSpan')->willReturn('foobar-colSpan');
        $column->expects($this->once())->method('getRowSpan')->willReturn('foobar-rowSpan');
        $column->expects($this->once())->method('getStyle')->willReturn('foobar-style');
        $column->expects($this->once())->method('getLabel')->willReturn('foobar-label');
        $subject = $this->getMock('FluidTYPO3\\Flux\\View\\PreviewView', array('drawNewIcon', 'drawPasteIcon'));
        $subject->expects($this->once())->method('drawNewIcon');
        $mockPageLayoutView = $this->getMock('TYPO3\\CMS\\Backend\\View\\PageLayoutView');
        $this->callInaccessibleMethod($subject, 'parseGridColumnTemplate', array(), $column, 1, $mockPageLayoutView, 'f-target', 2, 'f-content');
    }