PHP Class lithium\tests\cases\template\helper\FormTest

Inheritance: extends lithium\test\Unit
Datei anzeigen Open project: unionofrad/lithium

Public Properties

Property Type Description
$base
$context object The rendering context object.
$form object Test object instance.

Protected Properties

Property Type Description
$_model
$_model2

Public Methods

Method Description
setUp ( ) Initialize test by creating a new object instance with a default context.
tearDown ( )
testBindingByName ( )
testButton ( ) Tests that magic method support can be used to automatically generate a
testCheckboxGeneration ( )
testCustomCheckbox ( )
testCustomInputTypes ( )
testCustomRadio ( )
testCustomValueCheckbox ( )
testCustomValueRadio ( )
testElementsWithDefaultConfiguration ( )
testErrorWithCustomConfiguration ( )
testFieldAssumeSelectIfList ( ) Tests that the field() method properly renders a
testFieldInputIdWithFormId ( )
testFieldLabelWithOptions ( ) Demonstrates that the options for a element can be passed through the field() method, using the label text as a key.
testFieldTemplateOverride ( ) Tests that the string template form Form::field() can be overridden.
testFieldWithCustomType ( )
testFieldWithLabelShorthand ( )
testFormCreateWithMoreParams ( )
testFormCreateWithMoreParamsButSpecifiedAction ( )
testFormCreation ( )
testFormCreationMultipleBindings ( )
testFormCreationWithBinding ( )
testFormCreationWithNoContext ( )
testFormDataBinding ( )
testFormElementWithDefaultValue ( )
testFormErrorMultipleBindings ( )
testFormErrorWithRecordAndSpecificKey ( )
testFormErrorWithRecordAndSpecificKeyAndValue ( )
testFormErrorWithRecordAndStringError ( )
testFormErrorWithout ( )
testFormField ( )
testFormFieldCheckboxWithCustomConfig ( )
testFormFieldSelect ( )
testFormFieldWithCustomConfig ( )
testFormFieldWithCustomTemplate ( )
testFormFieldWithError ( )
testFormInputField ( )
testFormMultipleErrors ( )
testHiddenFieldWithId ( )
testHiddenFieldWithNoLabel ( ) Verifies that calls to field() with 'type' => 'hidden' do not produce s.
testHiddenFieldWithValue ( )
testLabelGeneration ( )
testLabelGenerationWithNoEscape ( )
testLabelIdGeneration ( ) Tests that field references passed to label() in dot-separated format correctly translate to DOM ID values.
testMultiSelect ( )
testMultipleFields ( )
testMultiselected ( )
testNestedFieldAccess ( ) Tests that inputs for nested objects can be assigned using dot syntax.
testNestedFieldError ( ) Tests rendering errors for nested fields.
testPasswordWithBindingValue ( ) Ensures that password fields aren't rendered with pre-populated values from bound record or document objects.
testRadioGeneration ( )
testRadioTypeFieldWithCustomTemplate ( ) Test that field already defined template strings with special types (e.g. radio, checkbox, etc.) and passed customize template, and the template must apply.
testRecursiveSelect ( ) Tests that calling select() with nested arrays will produce lists of s wrapped in elements.
testRespondsTo ( )
testRestFormCreation ( ) Tests creating forms with non-browser compatible HTTP methods, required for REST interfaces.
testSelectGeneration ( )
testSelectTypeAgnosticism ( ) When trying to determine which option of a select box should be selected, we should be integer/string agnostic because it all looks the same in HTML.
testSelectWithEmptyOption ( )
testSubmitGeneration ( )
testTemplateRemapping ( )
testTextBox ( )
testTextareaGeneration ( )

Method Details

setUp() public method

Initialize test by creating a new object instance with a default context.
public setUp ( )

tearDown() public method

public tearDown ( )

testBindingByName() public method

public testBindingByName ( )

testButton() public method

Tests that magic method support can be used to automatically generate a
public testButton ( )

testCheckboxGeneration() public method

testCustomCheckbox() public method

public testCustomCheckbox ( )

testCustomInputTypes() public method

testCustomRadio() public method

public testCustomRadio ( )

testCustomValueCheckbox() public method

testCustomValueRadio() public method

testElementsWithDefaultConfiguration() public method

testErrorWithCustomConfiguration() public method

testFieldAssumeSelectIfList() public method

Tests that the field() method properly renders a