Changeset 51331 for trunk/tests/phpunit/tests/xmlrpc/wp/getOptions.php
- Timestamp:
- 07/05/2021 05:21:53 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/getOptions.php
r48937 r51331 16 16 17 17 $result = $this->myxmlrpcserver->wp_getOptions( array( 1, 'subscriber', 'subscriber' ) ); 18 $this->assertI nternalType( 'array',$result );18 $this->assertIsArray( $result ); 19 19 $this->assertSame( 'WordPress', $result['software_name']['value'] ); 20 20 } … … 24 24 25 25 $result = $this->myxmlrpcserver->wp_getOptions( array( 1, 'administrator', 'administrator', 'default_comment_status' ) ); 26 $this->assertI nternalType( 'array',$result );26 $this->assertIsArray( $result ); 27 27 28 28 $this->assertSame( get_option( 'default_comment_status' ), $result['default_comment_status']['value'] ); … … 38 38 39 39 $result = $this->myxmlrpcserver->wp_getOptions( array( 1, 'subscriber', 'subscriber' ) ); 40 $this->assertI nternalType( 'array',$result );40 $this->assertIsArray( $result ); 41 41 42 42 // Read-only options. … … 127 127 128 128 $result = $this->myxmlrpcserver->wp_getOptions( array( 1, 'administrator', 'administrator' ) ); 129 $this->assertI nternalType( 'array',$result );129 $this->assertIsArray( $result ); 130 130 131 131 // Read-only options.
Note: See TracChangeset
for help on using the changeset viewer.