Changeset 42343 for trunk/tests/phpunit/tests/xmlrpc/wp/getTerm.php
- Timestamp:
- 11/30/2017 11:09:33 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/xmlrpc/wp/getTerm.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/getTerm.php
r41684 r42343 9 9 10 10 public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) { 11 self::$term_id = $factory->term->create( array( 12 'taxonomy' => 'category', 13 ) ); 11 self::$term_id = $factory->term->create( 12 array( 13 'taxonomy' => 'category', 14 ) 15 ); 14 16 } 15 17 … … 54 56 $this->assertIXRError( $result ); 55 57 $this->assertEquals( 500, $result->code ); 56 $this->assertEquals( __( 'Empty Term.'), $result->message );58 $this->assertEquals( __( 'Empty Term.' ), $result->message ); 57 59 } 58 60 … … 69 71 $this->make_user_by_role( 'editor' ); 70 72 71 $term = get_term( self::$term_id, 'category', ARRAY_A );73 $term = get_term( self::$term_id, 'category', ARRAY_A ); 72 74 $term['custom_fields'] = array(); 73 75 … … 109 111 $term = get_term( self::$term_id, 'category', ARRAY_A ); 110 112 111 $result = $this->myxmlrpcserver->wp_getTerm( array( 112 1, 113 'editor', 114 'editor', 115 'category', 116 self::$term_id, 117 ) ); 113 $result = $this->myxmlrpcserver->wp_getTerm( 114 array( 115 1, 116 'editor', 117 'editor', 118 'category', 119 self::$term_id, 120 ) 121 ); 118 122 $this->assertNotIXRError( $result ); 119 123
Note: See TracChangeset
for help on using the changeset viewer.