WordPress.org

Make WordPress Core

Changeset 646 in tests


Ignore:
Timestamp:
04/08/2012 01:05:23 PM (6 years ago)
Author:
duck_
Message:

Check correct result variable in three metaWeblog.getRecentPosts test cases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test-xmlrpc-api/test_mw_getRecentPosts.php

    r605 r646  
    4848        $fields = array( 'post' );
    4949        $results = $this->myxmlrpcserver->mw_getRecentPosts( array( 1, 'author', 'author' ) );
    50         $this->assertNotInstanceOf( 'IXR_Error', $result );
     50        $this->assertNotInstanceOf( 'IXR_Error', $results );
    5151
    5252        foreach( $results as $result ) {
     
    110110
    111111        $results = $this->myxmlrpcserver->mw_getRecentPosts( array( $this->post_id, 'author', 'author' ) );
    112         $this->assertNotInstanceOf( 'IXR_Error', $result );
     112        $this->assertNotInstanceOf( 'IXR_Error', $results );
    113113
    114114        foreach( $results as $result ) {
     
    131131    function test_date() {
    132132        $results = $this->myxmlrpcserver->mw_getRecentPosts( array( 1, 'editor', 'editor' ) );
    133         $this->assertNotInstanceOf( 'IXR_Error', $result );
     133        $this->assertNotInstanceOf( 'IXR_Error', $results );
    134134
    135135        foreach( $results as $result ) {
Note: See TracChangeset for help on using the changeset viewer.