Changeset 8295
- Timestamp:
- 04/18/2014 05:29:09 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/testcases/xprofile/class-bp-xprofile-field-type.php
r8178 r8295 17 17 $this->assertEquals( get_class( $field ), 'BP_XProfile_Field_Type_Textbox' ); 18 18 } 19 20 19 21 20 public function test_textbox_validate_empty_string() { … … 42 41 } 43 42 44 45 43 public function test_multiselectbox_validate_whitelisted_array() { 46 44 $field = bp_xprofile_create_field_type( 'multiselectbox' ); … … 61 59 $this->assertTrue( $field->is_valid( array() ) ); 62 60 } 63 64 61 65 62 public function test_datebox_do_not_validate_string() { … … 84 81 $this->assertFalse( $field->is_valid( '2013-12-22' ) ); 85 82 } 86 87 83 88 84 public function test_number_do_not_validate_string() { … … 121 117 } 122 118 123 124 119 public function test_radiobutton_validate_whitelisted_array() { 125 120 $field = bp_xprofile_create_field_type( 'radio' ); … … 139 134 $this->assertFalse( $field->is_valid( array( '' ) ) ); 140 135 } 141 142 136 143 137 public function test_checkbox_validate_whitelisted_array() {
Note: See TracChangeset
for help on using the changeset viewer.