Make WordPress Core


Ignore:
Timestamp:
05/01/2012 09:03:03 PM (12 years ago)
Author:
nacin
Message:

Pass the correct type and number arguments to various XML-RPC methods to ensure no notices are generated.

File:
1 edited

Legend:

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

    r701 r707  
    2929
    3030    function test_empty_taxonomy() {
    31         $result = $this->myxmlrpcserver->wp_editTerm( array( 1, 'subscriber', 'subscriber', '', array() ) );
     31        $result = $this->myxmlrpcserver->wp_editTerm( array( 1, 'subscriber', 'subscriber', '', array( 'taxonomy' => '' ) ) );
    3232        $this->assertInstanceOf( 'IXR_Error', $result );
    3333        $this->assertEquals( 403, $result->code );
Note: See TracChangeset for help on using the changeset viewer.