Changeset 48937 for trunk/tests/phpunit/tests/xmlrpc/wp/getPostType.php
- Timestamp:
- 09/02/2020 12:35:36 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/getPostType.php
r47122 r48937 33 33 $result = $this->myxmlrpcserver->wp_getPostType( array( 1, 'username', 'password', 'post' ) ); 34 34 $this->assertIXRError( $result ); 35 $this->assert Equals( 403, $result->code );35 $this->assertSame( 403, $result->code ); 36 36 } 37 37 … … 41 41 $result = $this->myxmlrpcserver->wp_getPostType( array( 1, 'editor', 'editor', 'foobar' ) ); 42 42 $this->assertIXRError( $result ); 43 $this->assert Equals( 403, $result->code );43 $this->assertSame( 403, $result->code ); 44 44 } 45 45 … … 56 56 $result = $this->myxmlrpcserver->wp_getPostType( array( 1, 'subscriber', 'subscriber', 'post' ) ); 57 57 $this->assertIXRError( $result ); 58 $this->assert Equals( 401, $result->code );58 $this->assertSame( 401, $result->code ); 59 59 } 60 60 … … 125 125 126 126 // Check expected values. 127 $this->assert Equals( $this->cpt_name, $result['name'] );127 $this->assertSame( $this->cpt_name, $result['name'] ); 128 128 foreach ( $this->cpt_args as $key => $value ) { 129 $this->assert Equals( $value, $result[ $key ] );129 $this->assertSame( $value, $result[ $key ] ); 130 130 } 131 131 }
Note: See TracChangeset
for help on using the changeset viewer.