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

testFormCreation() public method

public testFormCreation ( )
    public function testFormCreation()
    {
        $result = $this->form->create();
        $this->assertTags($result, array('form' => array('action' => "{$this->base}posts", 'method' => 'post')));
        $result = $this->form->create(null, array('method' => 'get'));
        $this->assertTags($result, array('form' => array('action' => "{$this->base}posts", 'method' => 'get')));
        $result = $this->form->create(null, array('type' => 'file'));
        $this->assertTags($result, array('form' => array('action' => "{$this->base}posts", 'enctype' => 'multipart/form-data', 'method' => 'post')));
        $result = $this->form->create(null, array('method' => 'get', 'type' => 'file'));
        $this->assertTags($result, array('form' => array('action' => "{$this->base}posts", 'method' => 'post', 'enctype' => 'multipart/form-data')));
        $result = $this->form->create(null, array('id' => 'Registration'));
        $this->assertTags($result, array('form' => array('action' => "{$this->base}posts", 'method' => 'post', 'id' => 'Registration')));
    }
FormTest