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

testLabelIdGeneration() public method

Tests that field references passed to label() in dot-separated format correctly translate to DOM ID values.
    public function testLabelIdGeneration()
    {
        $this->assertTags($this->form->label('user.name'), array('label' => array('for' => 'UserName'), 'User Name', '/label'));
    }
FormTest