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

testButton() public method

Tests that magic method support can be used to automatically generate a
public testButton ( )
    public function testButton()
    {
        $result = $this->form->button('Foo!', array('id' => 'bar'));
        $this->assertTags($result, array('button' => array('id' => 'bar'), 'Foo!', '/button'));
        $result = $this->form->button('Continue >', array('type' => 'submit'));
        $this->assertTags($result, array('button' => array('type' => 'submit', 'id' => 'Continue'), 'Continue >', '/button'));
    }
FormTest