Changeset 47122 for trunk/tests/phpunit/tests/xmlrpc/wp/getPostType.php
- Timestamp:
- 01/29/2020 12:43:23 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/getPostType.php
r46586 r47122 65 65 $this->assertNotIXRError( $result ); 66 66 67 // check data types67 // Check data types. 68 68 $this->assertInternalType( 'string', $result['name'] ); 69 69 $this->assertInternalType( 'string', $result['label'] ); … … 81 81 $this->assertInternalType( 'array', $result['supports'] ); 82 82 83 // check label data types83 // Check label data types. 84 84 $this->assertInternalType( 'string', $result['labels']['name'] ); 85 85 $this->assertInternalType( 'string', $result['labels']['singular_name'] ); … … 97 97 $this->assertInternalType( 'string', $result['labels']['name_admin_bar'] ); 98 98 99 // check cap data types99 // Check cap data types. 100 100 $this->assertInternalType( 'string', $result['cap']['edit_post'] ); 101 101 $this->assertInternalType( 'string', $result['cap']['read_post'] ); … … 113 113 $this->assertInternalType( 'string', $result['cap']['edit_published_posts'] ); 114 114 115 // check taxonomy data types115 // Check taxonomy data types. 116 116 foreach ( $result['taxonomies'] as $taxonomy ) { 117 117 $this->assertInternalType( 'string', $taxonomy ); 118 118 } 119 119 120 // check taxonomy data types120 // Check support data types. 121 121 foreach ( $result['supports'] as $key => $value ) { 122 122 $this->assertInternalType( 'string', $key ); … … 124 124 } 125 125 126 // Check expected values 126 // Check expected values. 127 127 $this->assertEquals( $this->cpt_name, $result['name'] ); 128 128 foreach ( $this->cpt_args as $key => $value ) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)