Changeset 27888 for branches/3.7/tests/phpunit/tests/option/siteOption.php
- Timestamp:
- 04/01/2014 04:06:27 AM (10 years ago)
- Location:
- branches/3.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.7
- Property svn:mergeinfo changed
/trunk merged: 26304-26305
- Property svn:mergeinfo changed
-
branches/3.7/tests/phpunit/tests/option/siteOption.php
r25002 r27888 91 91 $this->assertFalse( get_site_option( $option ) ); 92 92 } 93 94 /** 95 * @group multisite 96 */ 97 function test_site_notoptions() { 98 if ( ! is_multisite() ) { 99 $this->markTestSkipped( 'Should only run in multisite' ); 100 } 101 102 global $wpdb; 103 $notoptions_key = "{$wpdb->siteid}:notoptions"; 104 105 $_notoptions = wp_cache_get( 'notoptions', 'site-options' ); 106 $this->assertEmpty( $_notoptions ); 107 $_notoptions1 = wp_cache_get( $notoptions_key, 'site-options' ); 108 $this->assertEmpty( $_notoptions1 ); 109 110 get_site_option( 'burrito' ); 111 112 $notoptions = wp_cache_get( 'notoptions', 'site-options' ); 113 $this->assertEmpty( $notoptions ); 114 $notoptions1 = wp_cache_get( $notoptions_key, 'site-options' ); 115 $this->assertNotEmpty( $notoptions1 ); 116 } 93 117 }
Note: See TracChangeset
for help on using the changeset viewer.