public function setUp()
{
Router::connect('/{:controller}/{:action}/{:id}.{:type}', array('id' => null));
Router::connect('/{:controller}/{:action}/{:args}');
$request = new Request();
$request->params = array('controller' => 'posts', 'action' => 'index');
$request->persist = array('controller');
$this->context = new MockFormRenderer(compact('request'));
$this->form = new Form(array('context' => $this->context));
$this->base = $this->context->request()->env('base') . '/';
}