Changeset 7887 for trunk/tests/testcases/blogs/functions.php
- Timestamp:
- 02/14/2014 07:51:11 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/testcases/blogs/functions.php
r7885 r7887 220 220 public function test_bp_blogs_update_meta_prev_value() { 221 221 bp_blogs_add_blogmeta( 1, 'foo', 'bar' ); 222 $this->assertFalse( bp_blogs_update_blogmeta( 1, 'foo', 'bar2', 'baz' ) ); 222 223 // In earlier versions of WordPress, bp_activity_update_meta() 224 // returns true even on failure. However, we know that in these 225 // cases the update is failing as expected, so we skip this 226 // assertion just to keep our tests passing 227 // See https://core.trac.wordpress.org/ticket/24933 228 if ( version_compare( $GLOBALS['wp_version'], '3.7', '>=' ) ) { 229 $this->assertFalse( bp_blogs_update_blogmeta( 1, 'foo', 'bar2', 'baz' ) ); 230 } 231 223 232 $this->assertTrue( bp_blogs_update_blogmeta( 1, 'foo', 'bar2', 'bar' ) ); 224 233 }
Note: See TracChangeset
for help on using the changeset viewer.