Changeset 9073 for trunk/tests/phpunit/testcases/xprofile/functions.php
- Timestamp:
- 10/08/2014 02:14:29 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/xprofile/functions.php
r8987 r9073 474 474 /** 475 475 * @group xprofilemeta 476 * @group bp_xprofile_update_meta 477 * @ticket BP5919 478 */ 479 public function test_bp_xprofile_update_meta_where_sql_filter_keywords_are_in_quoted_value() { 480 $g = $this->factory->xprofile_group->create(); 481 $value = "SELECT object_id FROM wp_bp_xprofile_groups WHERE \"foo\" VALUES (foo = 'bar'"; 482 bp_xprofile_add_meta( $g, 'group', 'foo', 'bar' ); 483 bp_xprofile_update_meta( $g, 'group', 'foo', $value ); 484 $this->assertSame( $value, bp_xprofile_get_meta( $g, 'group', 'foo' ) ); 485 } 486 487 /** 488 * @group xprofilemeta 489 * @group bp_xprofile_update_meta 490 * @ticket BP5919 491 */ 492 public function test_bp_xprofile_update_meta_where_meta_id_is_in_quoted_value() { 493 $g = $this->factory->xprofile_group->create(); 494 $value = "foo meta_id bar"; 495 bp_xprofile_add_meta( $g, 'group', 'foo', 'bar' ); 496 bp_xprofile_update_meta( $g, 'group', 'foo', $value ); 497 $this->assertSame( $value, bp_xprofile_get_meta( $g, 'group', 'foo' ) ); 498 } 499 500 /** 501 * @group xprofilemeta 476 502 * @group bp_xprofile_add_meta 477 503 */
Note: See TracChangeset
for help on using the changeset viewer.