From 5a7934a3629618ad999fd01554f93851f37f4f63 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 10 Apr 2014 21:09:33 +0000 Subject: [PATCH] Fix a multisite test failure by testing an option that can be updated in multisite. fixes #22936. git-svn-id: https://develop.svn.wordpress.org/trunk@28067 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/xmlrpc/wp/setOptions.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/tests/xmlrpc/wp/setOptions.php b/tests/phpunit/tests/xmlrpc/wp/setOptions.php index 34232f7c33..e170d1604a 100644 --- a/tests/phpunit/tests/xmlrpc/wp/setOptions.php +++ b/tests/phpunit/tests/xmlrpc/wp/setOptions.php @@ -12,13 +12,15 @@ class Tests_XMLRPC_wp_setOptions extends WP_XMLRPC_UnitTestCase { $string_with_quote = "Mary's Lamb Shop"; $escaped_string_with_quote = esc_html( $string_with_quote ); // title is passed through esc_html() + update_option( 'default_comment_status', 'closed' ); + $this->assertEquals( 'closed', get_option( 'default_comment_status' ) ); $result = $this->myxmlrpcserver->wp_setOptions( array( 1, 'administrator', 'administrator', array( 'blog_title' => $string_with_quote, - 'users_can_register' => true, + 'default_comment_status' => 'open', ) ) ); $this->assertInternalType( 'array', $result ); $this->assertEquals( $escaped_string_with_quote, $result['blog_title']['value'] ); - $this->assertEquals( true, $result['users_can_register']['value'] ); + $this->assertEquals( 'open', $result['default_comment_status']['value'] ); } }