Changeset 48937 for trunk/tests/phpunit/tests/xmlrpc/wp/getMediaItem.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/getMediaItem.php
r47122 r48937 40 40 $result = $this->myxmlrpcserver->wp_getMediaItem( array( 1, 'username', 'password', 0 ) ); 41 41 $this->assertIXRError( $result ); 42 $this->assert Equals( 403, $result->code );42 $this->assertSame( 403, $result->code ); 43 43 } 44 44 … … 63 63 // Check expected values. 64 64 $this->assertStringMatchesFormat( '%d', $result['attachment_id'] ); 65 $this->assert Equals( $this->attachment_data['post_title'], $result['title'] );66 $this->assert Equals( wp_get_attachment_url( $this->attachment_id ), $result['link'] );67 $this->assert Equals( wp_get_attachment_thumb_url( $this->attachment_id ), $result['thumbnail'] );65 $this->assertSame( $this->attachment_data['post_title'], $result['title'] ); 66 $this->assertSame( wp_get_attachment_url( $this->attachment_id ), $result['link'] ); 67 $this->assertSame( wp_get_attachment_thumb_url( $this->attachment_id ), $result['thumbnail'] ); 68 68 } 69 69 }
Note: See TracChangeset
for help on using the changeset viewer.