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

testViewCanBeChangedInControllerAction() public method

Test that having a 'search' action in the controller and calling ->execute('index') will still render the 'search' view
    public function testViewCanBeChangedInControllerAction()
    {
        $this->request->expects($this->once())->method('method')->will($this->returnValue('GET'));
        $this->request->action = 'search';
        $this->controller->expects($this->once())->method('render')->with('search');
        $this->controller->search();
    }