Changeset 47122 for trunk/tests/phpunit/tests/xmlrpc/mw/getPost.php
- Timestamp:
- 01/29/2020 12:43:23 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/mw/getPost.php
r46586 r47122 52 52 $this->assertNotIXRError( $result ); 53 53 54 // Check data types 54 // Check data types. 55 55 $this->assertInternalType( 'string', $result['userid'] ); 56 56 $this->assertInternalType( 'int', $result['postid'] ); … … 77 77 $post_data = get_post( self::$post_id ); 78 78 79 // Check expected values 79 // Check expected values. 80 80 $this->assertStringMatchesFormat( '%d', $result['userid'] ); 81 81 $this->assertEquals( $post_data->post_title, $result['title'] ); … … 93 93 add_theme_support( 'post-thumbnails' ); 94 94 95 // create attachment95 // Create attachment. 96 96 $filename = ( DIR_TESTDATA . '/images/a2-small.jpg' ); 97 97 $attachment_id = self::factory()->attachment->create_upload_object( $filename );
Note: See TracChangeset
for help on using the changeset viewer.