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

testFormCreationWithNoContext() public method

    public function testFormCreationWithNoContext()
    {
        $this->form = new Form(array('context' => new MockFormRenderer(array('request' => new Request(array('base' => '/bbq'))))));
        $result = $this->form->create(null, array('url' => '/foo'));
        $this->assertTags($result, array('form' => array('action' => "/bbq/foo", 'method' => "post")));
    }
FormTest