- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/mt/getRecentPostTitles.php
r46586 r48937 9 9 $result = $this->myxmlrpcserver->mt_getRecentPostTitles( array( 1, 'username', 'password' ) ); 10 10 $this->assertIXRError( $result ); 11 $this->assert Equals( 403, $result->code );11 $this->assertSame( 403, $result->code ); 12 12 } 13 13 … … 17 17 $result = $this->myxmlrpcserver->mt_getRecentPostTitles( array( 1, 'author', 'author' ) ); 18 18 $this->assertIXRError( $result ); 19 $this->assert Equals( 500, $result->code );19 $this->assertSame( 500, $result->code ); 20 20 } 21 21 … … 27 27 $result = $this->myxmlrpcserver->mt_getRecentPostTitles( array( 1, 'author', 'author' ) ); 28 28 $this->assertNotIXRError( $result ); 29 $this->assert Equals( 0, count( $result ) );29 $this->assertSame( 0, count( $result ) ); 30 30 } 31 31 … … 45 45 $this->assertInstanceOf( 'IXR_Date', $result['date_created_gmt'] ); 46 46 47 $this->assert Equals( strtotime( $post->post_date ), $result['dateCreated']->getTimestamp() );48 $this->assert Equals( $date_gmt, $result['date_created_gmt']->getTimestamp() );47 $this->assertSame( strtotime( $post->post_date ), $result['dateCreated']->getTimestamp() ); 48 $this->assertSame( $date_gmt, $result['date_created_gmt']->getTimestamp() ); 49 49 } 50 50 }
Note: See TracChangeset
for help on using the changeset viewer.