Changeset 41719 for trunk/tests/phpunit/tests/multisite/siteDetails.php
- Timestamp:
- 10/03/2017 07:40:01 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/multisite/siteDetails.php
r40478 r41719 33 33 * @ticket 40063 34 34 */ 35 public function test_update_whitelisted_option_deletes_blog_details_cache( $whitelisted_option, $temporary_value ) {36 $blog_details = get_blog_details();37 38 $original_value = $blog_details->$whitelisted_option;39 update_option( $whitelisted_option, $temporary_value );40 41 $cached_result = wp_cache_get( $blog_details->id, 'blog-details' );42 43 /* Reset to original value. */44 update_option( $whitelisted_option, $original_value );45 46 $this->assertFalse( $cached_result );47 }48 49 /**50 * @dataProvider data_whitelisted_options51 *52 * @ticket 4006353 */54 35 public function test_update_whitelisted_option_does_not_delete_site_cache( $whitelisted_option, $temporary_value ) { 55 36 $site = get_site(); … … 59 40 60 41 $cached_result = wp_cache_get( $site->id, 'sites' ); 61 62 /* Reset to original value. */63 update_option( $whitelisted_option, $original_value );64 65 $this->assertNotFalse( $cached_result );66 }67 68 /**69 * @dataProvider data_whitelisted_options70 *71 * @ticket 4006372 */73 public function test_update_whitelisted_option_does_not_delete_short_blog_details_cache( $whitelisted_option, $temporary_value ) {74 $blog_details = get_blog_details( null, false );75 76 $original_value = get_option( $whitelisted_option );77 update_option( $whitelisted_option, $temporary_value );78 79 $cached_result = wp_cache_get( $blog_details->id . 'short', 'blog-details' );80 42 81 43 /* Reset to original value. */
Note: See TracChangeset
for help on using the changeset viewer.