Changeset 7887 for trunk/tests/testcases/xprofile/functions.php
- Timestamp:
- 02/14/2014 07:51:11 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/testcases/xprofile/functions.php
r7885 r7887 448 448 $g = $this->factory->xprofile_group->create(); 449 449 bp_xprofile_add_meta( $g, 'group', 'foo', 'bar' ); 450 $this->assertFalse( bp_xprofile_update_meta( $g, 'group', 'foo', 'bar2', 'baz' ) ); 450 451 // In earlier versions of WordPress, bp_activity_update_meta() 452 // returns true even on failure. However, we know that in these 453 // cases the update is failing as expected, so we skip this 454 // assertion just to keep our tests passing 455 // See https://core.trac.wordpress.org/ticket/24933 456 if ( version_compare( $GLOBALS['wp_version'], '3.7', '>=' ) ) { 457 $this->assertFalse( bp_xprofile_update_meta( $g, 'group', 'foo', 'bar2', 'baz' ) ); 458 } 459 451 460 $this->assertTrue( bp_xprofile_update_meta( $g, 'group', 'foo', 'bar2', 'bar' ) ); 452 461 }
Note: See TracChangeset
for help on using the changeset viewer.