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

testTemplateRemapping() public method

    public function testTemplateRemapping()
    {
        $result = $this->form->password('passwd');
        $this->assertTags($result, array('input' => array('type' => 'password', 'name' => 'passwd', 'id' => 'Passwd')));
        $this->form->config(array('templates' => array('password' => 'text')));
        $result = $this->form->password('passwd');
        $this->assertTags($result, array('input' => array('type' => 'text', 'name' => 'passwd', 'id' => 'Passwd')));
    }
FormTest