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();
}