Changeset 47122 for trunk/tests/phpunit/tests/xmlrpc/wp/getPost.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/xmlrpc/wp/getPost.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/getPost.php
r46586 r47122 42 42 $this->assertNotIXRError( $result ); 43 43 44 // Check data types 44 // Check data types. 45 45 $this->assertInternalType( 'string', $result['post_id'] ); 46 46 $this->assertInternalType( 'string', $result['post_title'] ); … … 64 64 $this->assertInternalType( 'array', $result['custom_fields'] ); 65 65 66 // Check expected values 66 // Check expected values. 67 67 $this->assertStringMatchesFormat( '%d', $result['post_id'] ); 68 68 $this->assertEquals( $this->post_data['post_title'], $result['post_title'] ); … … 85 85 $this->assertNotIXRError( $result ); 86 86 87 // when no fields are requested, only the IDs should be returned87 // When no fields are requested, only the IDs should be returned. 88 88 $this->assertEquals( 1, count( $result ) ); 89 89 $this->assertEquals( array( 'post_id' ), array_keys( $result ) ); … … 95 95 96 96 $this->assertArrayHasKey( 'post_id', $result ); 97 $this->assertArrayHasKey( 'link', $result ); // random field from 'posts' group97 $this->assertArrayHasKey( 'link', $result ); // Random field from 'posts' group. 98 98 $this->assertArrayHasKey( 'terms', $result ); 99 99 $this->assertArrayHasKey( 'custom_fields', $result );
Note: See TracChangeset
for help on using the changeset viewer.