Crud\TestCase\Controller\Crud\CrudComponentTest::testViewWithArrayIndexAction PHP Method

testViewWithArrayIndexAction() public method

Test if view with array yields the expected result
public testViewWithArrayIndexAction ( ) : void
return void
    public function testViewWithArrayIndexAction()
    {
        $this->request->expects($this->once())->method('method')->will($this->returnValue('GET'));
        $this->controller->expects($this->once())->method('render')->with('overview');
        $this->Crud->mapAction('show_all', ['className' => 'Crud.index']);
        $this->Crud->view(['show_all' => 'index', 'index' => 'overview']);
        $this->Crud->execute('index');
    }