WordPress.org

Make WordPress Core

Changeset 1332 in tests


Ignore:
Timestamp:
07/30/2013 11:04:51 AM (6 years ago)
Author:
ryan
Message:

Re-add global and persistent cache groups in WP_UnitTestCase::flush_cache(). Some cache tests mess with global groups and don't restore them. This causes many multisite cache tests to fail when the full test suite is run as groups such as blog-details are not properly global.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/testcase.php

    r1259 r1332  
    5151        }
    5252        wp_cache_flush();
     53        wp_cache_add_global_groups( array( 'users', 'userlogins', 'usermeta', 'user_meta', 'site-transient', 'site-options', 'site-lookup', 'blog-lookup', 'blog-details', 'rss', 'global-posts', 'blog-id-cache' ) );
     54        wp_cache_add_non_persistent_groups( array( 'comment', 'counts', 'plugins' ) );
    5355    }
    5456
Note: See TracChangeset for help on using the changeset viewer.