Make WordPress Core


Ignore:
Timestamp:
08/04/2022 02:02:36 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Tests: Simplify the list of global groups in object cache tests.

This list was not up to date due to missing blog_meta group, and does not appear to be required for the tests to pass, as WP_UnitTestCase_Base::flush_cache() adds the same list of groups, which is up to date.

Follow-up to [946/tests], [1332/tests], [40343], [42836], [53823].

See #55647.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/cache.php

    r53823 r53824  
    2525        $cache       = new $cache_class();
    2626
    27         $cache->add_global_groups(
    28             array(
    29                 'global-cache-test',
    30                 'users',
    31                 'userlogins',
    32                 'usermeta',
    33                 'user_meta',
    34                 'useremail',
    35                 'userslugs',
    36                 'site-transient',
    37                 'site-options',
    38                 'blog-lookup',
    39                 'blog-details',
    40                 'rss',
    41                 'global-posts',
    42                 'blog-id-cache',
    43                 'networks',
    44                 'sites',
    45                 'site-details',
    46             )
    47         );
     27        $cache->add_global_groups( array( 'global-cache-test' ) );
    4828
    4929        return $cache;
Note: See TracChangeset for help on using the changeset viewer.