Changeset 28067
- Timestamp:
- 04/10/2014 09:09:33 PM (12 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
r27551 r28067 13 13 $escaped_string_with_quote = esc_html( $string_with_quote ); // title is passed through esc_html() 14 14 15 update_option( 'default_comment_status', 'closed' ); 16 $this->assertEquals( 'closed', get_option( 'default_comment_status' ) ); 15 17 $result = $this->myxmlrpcserver->wp_setOptions( array( 1, 'administrator', 'administrator', array( 16 18 'blog_title' => $string_with_quote, 17 ' users_can_register' => true,19 'default_comment_status' => 'open', 18 20 ) ) ); 19 21 20 22 $this->assertInternalType( 'array', $result ); 21 23 $this->assertEquals( $escaped_string_with_quote, $result['blog_title']['value'] ); 22 $this->assertEquals( true, $result['users_can_register']['value'] );24 $this->assertEquals( 'open', $result['default_comment_status']['value'] ); 23 25 } 24 26 }
Note: See TracChangeset
for help on using the changeset viewer.