Removing cruft from form test

Adding test descriptions.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7663 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
mark_story 2008-09-26 00:07:57 +00:00
parent 62168bfe0f
commit c416b5d241

View file

@ -580,6 +580,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testFormCreateWithSecurity method * testFormCreateWithSecurity method
* *
* Test form->create() with security key.
*
* @access public * @access public
* @return void * @return void
*/ */
@ -627,6 +629,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testFormSecurityFields method * testFormSecurityFields method
* *
* Test generation of secure form hash generation.
*
* @access public * @access public
* @return void * @return void
*/ */
@ -681,6 +685,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testFormSecurityMultipleFields method * testFormSecurityMultipleFields method
* *
* Test secure() with multiple row form. Ensure hash is correct.
*
* @access public * @access public
* @return void * @return void
*/ */
@ -712,6 +718,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testFormSecurityMultipleInputFields method * testFormSecurityMultipleInputFields method
* *
* Test secure form creation with multiple row creation. Checks hidden, text, checkbox field types
*
* @access public * @access public
* @return void * @return void
*/ */
@ -757,6 +765,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testFormSecurityMultipleInputDisabledFields method * testFormSecurityMultipleInputDisabledFields method
* *
* test secure form generation with multiple records and disabled fields.
*
* @access public * @access public
* @return void * @return void
*/ */
@ -798,6 +808,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testFormSecurityInputDisabledFields method * testFormSecurityInputDisabledFields method
* *
* Test single record form with disabled fields.
*
* @access public * @access public
* @return void * @return void
*/ */
@ -839,16 +851,12 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testFormSecuredInput method * testFormSecuredInput method
* *
* Test generation of entire secure form, assertions made on input() output.
*
* @access public * @access public
* @return void * @return void
*/ */
function testFormSecuredInput() { function testFormSecuredInput() {
$fields = array(
'UserForm' => array('0' => 'published', '1' => 'other', '2' => 'hidden', '3' => 'something'),
'_UserForm' => array('stuff' => '', 'hidden' => '0', 'something' => '0'),
'_Token' => array('key' => 'testKey')
);
$this->Form->params['_Token']['key'] = 'testKey'; $this->Form->params['_Token']['key'] = 'testKey';
$result = $this->Form->create('Contact', array('url' => '/contacts/add')); $result = $this->Form->create('Contact', array('url' => '/contacts/add'));
@ -939,6 +947,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testPasswordValidation method * testPasswordValidation method
* *
* test validation errors on password input.
*
* @access public * @access public
* @return void * @return void
*/ */
@ -961,6 +971,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testFormValidationAssociated method * testFormValidationAssociated method
* *
* test display of form errors in conjunction with model::validates.
*
* @access public * @access public
* @return void * @return void
*/ */
@ -994,6 +1006,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testFormValidationAssociatedFirstLevel method * testFormValidationAssociatedFirstLevel method
* *
* test form error display with associated model.
*
* @access public * @access public
* @return void * @return void
*/ */
@ -1028,6 +1042,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testFormValidationAssociatedSecondLevel method * testFormValidationAssociatedSecondLevel method
* *
* test form error display with associated model.
*
* @access public * @access public
* @return void * @return void
*/ */
@ -1070,6 +1086,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testFormValidationMultiRecord method * testFormValidationMultiRecord method
* *
* test form error display with multiple records.
*
* @access public * @access public
* @return void * @return void
*/ */
@ -1107,6 +1125,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testMultipleInputValidation method * testMultipleInputValidation method
* *
* test multiple record form validation error display.
*
* @access public * @access public
* @return void * @return void
*/ */
@ -1172,6 +1192,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testFormInput method * testFormInput method
* *
* Test various incarnations of input().
*
* @access public * @access public
* @return void * @return void
*/ */
@ -1496,6 +1518,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testFormInputs method * testFormInputs method
* *
* test correct results from form::inputs().
*
* @access public * @access public
* @return void * @return void
*/ */
@ -1688,6 +1712,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testSelectAsCheckbox method * testSelectAsCheckbox method
* *
* test multi-select widget with checkbox formatting.
*
* @access public * @access public
* @return void * @return void
*/ */
@ -1719,6 +1745,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testLabel method * testLabel method
* *
* test label generation.
*
* @access public * @access public
* @return void * @return void
*/ */
@ -1752,6 +1780,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testTextbox method * testTextbox method
* *
* test textbox element generation
*
* @access public * @access public
* @return void * @return void
*/ */
@ -1777,6 +1807,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testDefaultValue method * testDefaultValue method
* *
* Test default value setting
*
* @access public * @access public
* @return void * @return void
*/ */
@ -1792,6 +1824,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testFieldError method * testFieldError method
* *
* Test field error generation
*
* @access public * @access public
* @return void * @return void
*/ */
@ -1826,6 +1860,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testPassword method * testPassword method
* *
* Test password element generation
*
* @access public * @access public
* @return void * @return void
*/ */
@ -1841,6 +1877,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testRadio method * testRadio method
* *
* Test radio element set generation
*
* @access public * @access public
* @return void * @return void
*/ */
@ -2086,6 +2124,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testSelect method * testSelect method
* *
* Test select element generation.
*
* @access public * @access public
* @return void * @return void
*/ */
@ -2161,6 +2201,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testNestedSelect method * testNestedSelect method
* *
* test select element generation with optgroups
*
* @access public * @access public
* @return void * @return void
*/ */
@ -2222,6 +2264,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testSelectMultiple method * testSelectMultiple method
* *
* test generation of multiple select elements
*
* @access public * @access public
* @return void * @return void
*/ */
@ -2280,6 +2324,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testSelectMultipleCheckboxes method * testSelectMultipleCheckboxes method
* *
* test generation of multi select elements in checkbox format
*
* @access public * @access public
* @return void * @return void
*/ */
@ -2376,6 +2422,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testInputMultipleCheckboxes method * testInputMultipleCheckboxes method
* *
* test input() resulting in multi select elements being generated.
*
* @access public * @access public
* @return void * @return void
*/ */
@ -2465,6 +2513,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testCheckbox method * testCheckbox method
* *
* Test generation of checkboxes
*
* @access public * @access public
* @return void * @return void
*/ */
@ -2578,6 +2628,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testDateTime method * testDateTime method
* *
* Test generation of date/time select elements
*
* @access public * @access public
* @return void * @return void
*/ */
@ -3069,9 +3121,11 @@ class FormHelperTest extends CakeTestCase {
); );
$this->assertTags($result, $expected); $this->assertTags($result, $expected);
} }
/** /**
* testFormDateTimeMulti method * testFormDateTimeMulti method
* *
* test multiple datetime element generation
*
* @access public * @access public
* @return void * @return void
*/ */
@ -3642,6 +3696,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testTextAreaWithStupidCharacters method * testTextAreaWithStupidCharacters method
* *
* test text area with non-ascii characters
*
* @access public * @access public
* @return void * @return void
*/ */
@ -3923,6 +3979,8 @@ class FormHelperTest extends CakeTestCase {
/** /**
* testEditFormWithData method * testEditFormWithData method
* *
* test auto populating form elements from submitted data.
*
* @access public * @access public
* @return void * @return void
*/ */