Changeset 47122 for trunk/tests/phpunit/tests/xmlrpc/mw/getRecentPosts.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/mw/getRecentPosts.php
r46586 r47122 58 58 $post = get_post( $result['postid'] ); 59 59 60 // Check data types 60 // Check data types. 61 61 $this->assertInternalType( 'string', $result['userid'] ); 62 62 $this->assertInternalType( 'string', $result['postid'] ); … … 80 80 $this->assertInternalType( 'string', $result['wp_post_format'] ); 81 81 82 // Check expected values 82 // Check expected values. 83 83 $this->assertStringMatchesFormat( '%d', $result['userid'] ); 84 84 $this->assertStringMatchesFormat( '%d', $result['postid'] ); … … 98 98 add_theme_support( 'post-thumbnails' ); 99 99 100 // create attachment100 // Create attachment. 101 101 $filename = ( DIR_TESTDATA . '/images/a2-small.jpg' ); 102 102 $attachment_id = self::factory()->attachment->create_upload_object( $filename, self::$post_id );
Note: See TracChangeset
for help on using the changeset viewer.