lithium\tests\cases\template\helper\FormTest::testFormCreateWithMoreParamsButSpecifiedAction PHP Method

testFormCreateWithMoreParamsButSpecifiedAction() public method

    public function testFormCreateWithMoreParamsButSpecifiedAction()
    {
        $request = new Request();
        $request->params = array('controller' => 'mock', 'action' => 'test', 'args' => array('1'));
        $request->persist = array('controller');
        $context = new MockFormRenderer(compact('request'));
        $form = new Form(compact('context'));
        $result = $form->create(null, array('action' => 'radness'));
        $this->assertTags($result, array('form' => array('action' => "{$this->base}mock/radness", 'method' => 'post')));
    }
FormTest