Changeset 47122 for trunk/tests/phpunit/tests/xmlrpc/wp/getOptions.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/getOptions.php
r46586 r47122 40 40 $this->assertInternalType( 'array', $result ); 41 41 42 // Read Only options42 // Read-only options. 43 43 $this->assertEquals( 'WordPress', $result['software_name']['value'] ); 44 44 $this->assertTrue( $result['software_name']['readonly'] ); … … 74 74 $this->assertTrue( $result['post_thumbnail']['readonly'] ); 75 75 76 // Updatable options 76 // Updatable options. 77 77 $this->assertEquals( get_option( 'gmt_offset' ), $result['time_zone']['value'] ); 78 78 $this->assertTrue( $result['time_zone']['readonly'] ); … … 129 129 $this->assertInternalType( 'array', $result ); 130 130 131 // Read Only options131 // Read-only options. 132 132 $this->assertEquals( 'WordPress', $result['software_name']['value'] ); 133 133 $this->assertTrue( $result['software_name']['readonly'] ); … … 163 163 $this->assertTrue( $result['post_thumbnail']['readonly'] ); 164 164 165 // Updatable options 165 // Updatable options. 166 166 $this->assertEquals( get_option( 'gmt_offset' ), $result['time_zone']['value'] ); 167 167 $this->assertFalse( $result['time_zone']['readonly'] );
Note: See TracChangeset
for help on using the changeset viewer.