Changeset 38078
- Timestamp:
- 07/17/2016 04:23:31 PM (8 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/taxonomy.php
r37954 r38078 255 255 $terms = get_objects_in_term( 1, 'invalid_taxonomy' ); 256 256 $this->assertInstanceOf( 'WP_Error', $terms ); 257 $this->assertEquals( ' Invalid taxonomy', $terms->get_error_message() );257 $this->assertEquals( 'invalid_taxonomy', $terms->get_error_code() ); 258 258 } 259 259 -
trunk/tests/phpunit/tests/xmlrpc/wp/deleteTerm.php
r37914 r38078 26 26 $this->assertInstanceOf( 'IXR_Error', $result ); 27 27 $this->assertEquals( 403, $result->code ); 28 $this->assertEquals( __( 'Invalid taxonomy ' ), $result->message );28 $this->assertEquals( __( 'Invalid taxonomy.' ), $result->message ); 29 29 } 30 30 … … 35 35 $this->assertInstanceOf( 'IXR_Error', $result ); 36 36 $this->assertEquals( 403, $result->code ); 37 $this->assertEquals( __( 'Invalid taxonomy ' ), $result->message );37 $this->assertEquals( __( 'Invalid taxonomy.' ), $result->message ); 38 38 } 39 39 … … 62 62 $this->assertInstanceOf( 'IXR_Error', $result ); 63 63 $this->assertEquals( 404, $result->code ); 64 $this->assertEquals( __( 'Invalid term ID'), $result->message );64 $this->assertEquals( __( 'Invalid term ID.' ), $result->message ); 65 65 } 66 66 -
trunk/tests/phpunit/tests/xmlrpc/wp/editTerm.php
r37914 r38078 32 32 $this->assertInstanceOf( 'IXR_Error', $result ); 33 33 $this->assertEquals( 403, $result->code ); 34 $this->assertEquals( __( 'Invalid taxonomy ' ), $result->message );34 $this->assertEquals( __( 'Invalid taxonomy.' ), $result->message ); 35 35 } 36 36 … … 41 41 $this->assertInstanceOf( 'IXR_Error', $result ); 42 42 $this->assertEquals( 403, $result->code ); 43 $this->assertEquals( __( 'Invalid taxonomy ' ), $result->message );43 $this->assertEquals( __( 'Invalid taxonomy.' ), $result->message ); 44 44 } 45 45 … … 59 59 $this->assertInstanceOf( 'IXR_Error', $result ); 60 60 $this->assertEquals( 404, $result->code ); 61 $this->assertEquals( __( 'Invalid term ID ' ), $result->message );61 $this->assertEquals( __( 'Invalid term ID.' ), $result->message ); 62 62 } 63 63 -
trunk/tests/phpunit/tests/xmlrpc/wp/getTaxonomy.php
r37914 r38078 18 18 $this->assertInstanceOf( 'IXR_Error', $result ); 19 19 $this->assertEquals( 403, $result->code ); 20 $this->assertEquals( __( 'Invalid taxonomy ' ), $result->message );20 $this->assertEquals( __( 'Invalid taxonomy.' ), $result->message ); 21 21 } 22 22 … … 27 27 $this->assertInstanceOf( 'IXR_Error', $result ); 28 28 $this->assertEquals( 403, $result->code ); 29 $this->assertEquals( __( 'Invalid taxonomy ' ), $result->message );29 $this->assertEquals( __( 'Invalid taxonomy.' ), $result->message ); 30 30 } 31 31 -
trunk/tests/phpunit/tests/xmlrpc/wp/getTerm.php
r37914 r38078 26 26 $this->assertInstanceOf( 'IXR_Error', $result ); 27 27 $this->assertEquals( 403, $result->code ); 28 $this->assertEquals( __( 'Invalid taxonomy ' ), $result->message );28 $this->assertEquals( __( 'Invalid taxonomy.' ), $result->message ); 29 29 } 30 30 … … 35 35 $this->assertInstanceOf( 'IXR_Error', $result ); 36 36 $this->assertEquals( 403, $result->code ); 37 $this->assertEquals( __( 'Invalid taxonomy ' ), $result->message );37 $this->assertEquals( __( 'Invalid taxonomy.' ), $result->message ); 38 38 } 39 39 … … 63 63 $this->assertInstanceOf( 'IXR_Error', $result ); 64 64 $this->assertEquals( 404, $result->code ); 65 $this->assertEquals( __( 'Invalid term ID'), $result->message );65 $this->assertEquals( __( 'Invalid term ID.' ), $result->message ); 66 66 } 67 67 -
trunk/tests/phpunit/tests/xmlrpc/wp/getTerms.php
r37914 r38078 18 18 $this->assertInstanceOf( 'IXR_Error', $result ); 19 19 $this->assertEquals( 403, $result->code ); 20 $this->assertEquals( __( 'Invalid taxonomy ' ), $result->message );20 $this->assertEquals( __( 'Invalid taxonomy.' ), $result->message ); 21 21 } 22 22 … … 27 27 $this->assertInstanceOf( 'IXR_Error', $result ); 28 28 $this->assertEquals( 403, $result->code ); 29 $this->assertEquals( __( 'Invalid taxonomy ' ), $result->message );29 $this->assertEquals( __( 'Invalid taxonomy.' ), $result->message ); 30 30 } 31 31 -
trunk/tests/phpunit/tests/xmlrpc/wp/newTerm.php
r37914 r38078 27 27 $this->assertInstanceOf( 'IXR_Error', $result ); 28 28 $this->assertEquals( 403, $result->code ); 29 $this->assertEquals( __( 'Invalid taxonomy ' ), $result->message );29 $this->assertEquals( __( 'Invalid taxonomy.' ), $result->message ); 30 30 } 31 31 … … 36 36 $this->assertInstanceOf( 'IXR_Error', $result ); 37 37 $this->assertEquals( 403, $result->code ); 38 $this->assertEquals( __( 'Invalid taxonomy ' ), $result->message );38 $this->assertEquals( __( 'Invalid taxonomy.' ), $result->message ); 39 39 } 40 40
Note: See TracChangeset
for help on using the changeset viewer.