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

testDrawRecord() public method

public testDrawRecord ( )
    public function testDrawRecord()
    {
        $parentRow = array('bar' => 'foo');
        $record = array('foo' => 'bar');
        $column = new Form\Container\Column();
        $view = $this->getMock('FluidTYPO3\\Flux\\View\\PageLayoutView', array('tt_content_drawHeader'));
        $view->expects($this->any())->method('tt_content_drawHeader')->with($record, $this->anything(), $this->anything(), $this->anything());
        $instance = $this->createInstance();
        $result = $this->callInaccessibleMethod($instance, 'drawRecord', $parentRow, $column, $record, $view);
        $this->assertNotEmpty($result);
    }