WordPress.org

Make WordPress Core

Changeset 28067


Ignore:
Timestamp:
04/10/2014 09:09:33 PM (7 years ago)
Author:
nacin
Message:

Fix a multisite test failure by testing an option that can be updated in multisite.

fixes #22936.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/xmlrpc/wp/setOptions.php

    r27551 r28067  
    1313        $escaped_string_with_quote = esc_html( $string_with_quote ); // title is passed through esc_html()
    1414
     15        update_option( 'default_comment_status', 'closed' );
     16        $this->assertEquals( 'closed', get_option( 'default_comment_status' ) );
    1517        $result = $this->myxmlrpcserver->wp_setOptions( array( 1, 'administrator', 'administrator', array(
    1618            'blog_title' => $string_with_quote,
    17             'users_can_register' => true,
     19            'default_comment_status' => 'open',
    1820        ) ) );
    1921
    2022        $this->assertInternalType( 'array', $result );
    2123        $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'] );
    2325    }
    2426}
Note: See TracChangeset for help on using the changeset viewer.