Make WordPress Core

Changeset 38078


Ignore:
Timestamp:
07/17/2016 04:23:31 PM (8 years ago)
Author:
SergeyBiryukov
Message:

Unit Tests: Account for the string changes in [38077].

See #18218.

Location:
trunk/tests/phpunit/tests
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/taxonomy.php

    r37954 r38078  
    255255        $terms = get_objects_in_term( 1, 'invalid_taxonomy' );
    256256        $this->assertInstanceOf( 'WP_Error', $terms );
    257         $this->assertEquals( 'Invalid taxonomy', $terms->get_error_message() );
     257        $this->assertEquals( 'invalid_taxonomy', $terms->get_error_code() );
    258258    }
    259259
  • trunk/tests/phpunit/tests/xmlrpc/wp/deleteTerm.php

    r37914 r38078  
    2626        $this->assertInstanceOf( 'IXR_Error', $result );
    2727        $this->assertEquals( 403, $result->code );
    28         $this->assertEquals( __( 'Invalid taxonomy' ), $result->message );
     28        $this->assertEquals( __( 'Invalid taxonomy.' ), $result->message );
    2929    }
    3030
     
    3535        $this->assertInstanceOf( 'IXR_Error', $result );
    3636        $this->assertEquals( 403, $result->code );
    37         $this->assertEquals( __( 'Invalid taxonomy' ), $result->message );
     37        $this->assertEquals( __( 'Invalid taxonomy.' ), $result->message );
    3838    }
    3939
     
    6262        $this->assertInstanceOf( 'IXR_Error', $result );
    6363        $this->assertEquals( 404, $result->code );
    64         $this->assertEquals( __('Invalid term ID'), $result->message );
     64        $this->assertEquals( __( 'Invalid term ID.' ), $result->message );
    6565    }
    6666
  • trunk/tests/phpunit/tests/xmlrpc/wp/editTerm.php

    r37914 r38078  
    3232        $this->assertInstanceOf( 'IXR_Error', $result );
    3333        $this->assertEquals( 403, $result->code );
    34         $this->assertEquals( __( 'Invalid taxonomy' ), $result->message );
     34        $this->assertEquals( __( 'Invalid taxonomy.' ), $result->message );
    3535    }
    3636
     
    4141        $this->assertInstanceOf( 'IXR_Error', $result );
    4242        $this->assertEquals( 403, $result->code );
    43         $this->assertEquals( __( 'Invalid taxonomy' ), $result->message );
     43        $this->assertEquals( __( 'Invalid taxonomy.' ), $result->message );
    4444    }
    4545
     
    5959        $this->assertInstanceOf( 'IXR_Error', $result );
    6060        $this->assertEquals( 404, $result->code );
    61         $this->assertEquals(  __( 'Invalid term ID' ), $result->message );
     61        $this->assertEquals(  __( 'Invalid term ID.' ), $result->message );
    6262    }
    6363
  • trunk/tests/phpunit/tests/xmlrpc/wp/getTaxonomy.php

    r37914 r38078  
    1818        $this->assertInstanceOf( 'IXR_Error', $result );
    1919        $this->assertEquals( 403, $result->code );
    20         $this->assertEquals( __( 'Invalid taxonomy' ), $result->message );
     20        $this->assertEquals( __( 'Invalid taxonomy.' ), $result->message );
    2121    }
    2222
     
    2727        $this->assertInstanceOf( 'IXR_Error', $result );
    2828        $this->assertEquals( 403, $result->code );
    29         $this->assertEquals( __( 'Invalid taxonomy' ), $result->message );
     29        $this->assertEquals( __( 'Invalid taxonomy.' ), $result->message );
    3030    }
    3131
  • trunk/tests/phpunit/tests/xmlrpc/wp/getTerm.php

    r37914 r38078  
    2626        $this->assertInstanceOf( 'IXR_Error', $result );
    2727        $this->assertEquals( 403, $result->code );
    28         $this->assertEquals( __( 'Invalid taxonomy' ), $result->message );
     28        $this->assertEquals( __( 'Invalid taxonomy.' ), $result->message );
    2929    }
    3030
     
    3535        $this->assertInstanceOf( 'IXR_Error', $result );
    3636        $this->assertEquals( 403, $result->code );
    37         $this->assertEquals( __( 'Invalid taxonomy' ), $result->message );
     37        $this->assertEquals( __( 'Invalid taxonomy.' ), $result->message );
    3838    }
    3939
     
    6363        $this->assertInstanceOf( 'IXR_Error', $result );
    6464        $this->assertEquals( 404, $result->code );
    65         $this->assertEquals( __('Invalid term ID'), $result->message );
     65        $this->assertEquals( __( 'Invalid term ID.' ), $result->message );
    6666    }
    6767
  • trunk/tests/phpunit/tests/xmlrpc/wp/getTerms.php

    r37914 r38078  
    1818        $this->assertInstanceOf( 'IXR_Error', $result );
    1919        $this->assertEquals( 403, $result->code );
    20         $this->assertEquals( __( 'Invalid taxonomy' ), $result->message );
     20        $this->assertEquals( __( 'Invalid taxonomy.' ), $result->message );
    2121    }
    2222
     
    2727        $this->assertInstanceOf( 'IXR_Error', $result );
    2828        $this->assertEquals( 403, $result->code );
    29         $this->assertEquals( __( 'Invalid taxonomy' ), $result->message );
     29        $this->assertEquals( __( 'Invalid taxonomy.' ), $result->message );
    3030    }
    3131
  • trunk/tests/phpunit/tests/xmlrpc/wp/newTerm.php

    r37914 r38078  
    2727        $this->assertInstanceOf( 'IXR_Error', $result );
    2828        $this->assertEquals( 403, $result->code );
    29         $this->assertEquals( __( 'Invalid taxonomy' ), $result->message );
     29        $this->assertEquals( __( 'Invalid taxonomy.' ), $result->message );
    3030    }
    3131
     
    3636        $this->assertInstanceOf( 'IXR_Error', $result );
    3737        $this->assertEquals( 403, $result->code );
    38         $this->assertEquals( __( 'Invalid taxonomy' ), $result->message );
     38        $this->assertEquals( __( 'Invalid taxonomy.' ), $result->message );
    3939    }
    4040
Note: See TracChangeset for help on using the changeset viewer.