Changeset 42343 for trunk/tests/phpunit/tests/xmlrpc/wp/setOptions.php
- Timestamp:
- 11/30/2017 11:09:33 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/xmlrpc/wp/setOptions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/setOptions.php
r28067 r42343 10 10 function test_set_option_no_escape_strings() { 11 11 $this->make_user_by_role( 'administrator' ); 12 $string_with_quote = "Mary's Lamb Shop";12 $string_with_quote = "Mary's Lamb Shop"; 13 13 $escaped_string_with_quote = esc_html( $string_with_quote ); // title is passed through esc_html() 14 14 15 15 update_option( 'default_comment_status', 'closed' ); 16 16 $this->assertEquals( 'closed', get_option( 'default_comment_status' ) ); 17 $result = $this->myxmlrpcserver->wp_setOptions( array( 1, 'administrator', 'administrator', array( 18 'blog_title' => $string_with_quote, 19 'default_comment_status' => 'open', 20 ) ) ); 17 $result = $this->myxmlrpcserver->wp_setOptions( 18 array( 19 1, 20 'administrator', 21 'administrator', 22 array( 23 'blog_title' => $string_with_quote, 24 'default_comment_status' => 'open', 25 ), 26 ) 27 ); 21 28 22 29 $this->assertInternalType( 'array', $result );
Note: See TracChangeset
for help on using the changeset viewer.