- Timestamp:
- 02/14/2016 01:48:59 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/xprofile/class-bp-xprofile-field-type.php
r9819 r10592 39 39 $this->assertTrue( $field->is_valid( array( 'cheese', 'pepporoni' ) ) ); 40 40 $this->assertTrue( $field->is_valid( array( 'cheese' ) ) ); 41 $this->assertFalse( $field->is_valid( array( 'cheese', 'p epporoni', 'pinapple' ) ) );41 $this->assertFalse( $field->is_valid( array( 'cheese', 'pinapple', 'pepporoni' ) ) ); 42 42 $this->assertFalse( $field->is_valid( array( 'pinapple' ) ) ); 43 43 } … … 105 105 $this->assertTrue( $field->is_valid( array( 123 ) ) ); 106 106 $this->assertTrue( $field->is_valid( array( 456 ) ) ); 107 $this->assertFalse( $field->is_valid( array( 123, 456, 789) ) );107 $this->assertFalse( $field->is_valid( array( 789, 456, 123 ) ) ); 108 108 $this->assertFalse( $field->is_valid( array( 789 ) ) ); 109 109 } … … 115 115 $this->assertTrue( $field->is_valid( array( 'cheese', 'pepporoni' ) ) ); 116 116 $this->assertTrue( $field->is_valid( array( 'cheese' ) ) ); 117 $this->assertFalse( $field->is_valid( array( 'cheese', 'pepporoni', 'pinapple' ) ) );117 $this->assertFalse( $field->is_valid( array( 'pinapple', 'cheese', 'pepporoni' ) ) ); 118 118 $this->assertFalse( $field->is_valid( array( 'pinapple' ) ) ); 119 119 $this->assertFalse( $field->is_valid( '' ) ); … … 133 133 $this->assertTrue( $field->is_valid( array( 'cheese', 'pepporoni' ) ) ); 134 134 $this->assertTrue( $field->is_valid( array( 'cheese' ) ) ); 135 $this->assertFalse( $field->is_valid( array( ' cheese', 'pepporoni', 'pinapple' ) ) );135 $this->assertFalse( $field->is_valid( array( 'pepporoni', 'cheese', 'pinapple' ) ) ); 136 136 $this->assertFalse( $field->is_valid( array( 'pinapple' ) ) ); 137 137 $this->assertFalse( $field->is_valid( '' ) );
Note: See TracChangeset
for help on using the changeset viewer.