Changeset 10254 for trunk/tests/phpunit/testcases/xprofile/functions.php
- Timestamp:
- 10/12/2015 05:50:45 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/xprofile/functions.php
r10198 r10254 914 914 $this->assertSame( $num_queries, $wpdb->num_queries ); 915 915 } 916 917 /** 918 * @ticket BP5625 919 */ 920 public function test_bp_xprofie_is_richtext_enabled_for_field_should_default_to_true_for_textareas() { 921 $g = $this->factory->xprofile_group->create(); 922 $f = $this->factory->xprofile_field->create( array( 923 'field_group_id' => $g, 924 'type' => 'textarea', 925 ) ); 926 927 $this->assertTrue( bp_xprofile_is_richtext_enabled_for_field( $f ) ); 928 } 929 930 /** 931 * @ticket BP5625 932 */ 933 public function test_bp_xprofie_is_richtext_enabled_for_field_should_default_to_false_for_non_textareas() { 934 $g = $this->factory->xprofile_group->create(); 935 $f = $this->factory->xprofile_field->create( array( 936 'field_group_id' => $g, 937 'type' => 'radio', 938 ) ); 939 940 $this->assertFalse( bp_xprofile_is_richtext_enabled_for_field( $f ) ); 941 } 916 942 }
Note: See TracChangeset
for help on using the changeset viewer.