wordpress-develop/tests/phpunit/tests/multisite
Jeremy Felt 381930974c Multisite: Introduce WP_Site_Query
Provides a consistent way to query `$wpdb->blogs` for `WP_Site` objects based on domain, path, site ID, network ID, and more.

Introduces and uses `update_site_cache()` and `_prime_site_caches()` to maintain a cached list of `WP_Site` objects for use in multiple queries.

Props spacedmonkey, flixos90, DrewAPicture, jeremyfelt, ocean90.
See #35791.


git-svn-id: https://develop.svn.wordpress.org/trunk@37477 602fd350-edb4-49c9-b593-d223f7449a82
2016-05-20 22:03:52 +00:00
..
bootstrap.php Multisite: Wrap the main bootstrap process in a function 2016-05-20 20:56:54 +00:00
getSpaceAllowed.php Unit Tests: WP_UnitTest_Generator_Sequence needs a static incrementer - otherwise, it assumes every test class is a reset, which it no longer is (it is now static). 2015-10-17 19:24:20 +00:00
getSpaceUsed.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
isEmailAddressUnsafe.php is_email_address_unsafe() tests should only be run on multisite. 2015-05-29 12:37:51 +00:00
isUploadSpaceAvailable.php MS: Allow for a blog_upload_space setting of 0 to restrict uploads. 2015-10-10 23:14:11 +00:00
ms-files-rewriting.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
network.php Tests: Account for flexible IDs in main network deletion test 2016-04-22 15:21:14 +00:00
site.php Remove (or at least reduce) the need to reset common $_SERVER variables before assertions or between tests, by introducing a method which automatically resets them during test setup. 2016-02-26 02:08:47 +00:00
siteQuery.php Multisite: Introduce WP_Site_Query 2016-05-20 22:03:52 +00:00
updateBlogDetails.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
uploadIsUserOverQuota.php MS: Handle the possibility of 0 when checking a user's upload quota. 2015-10-10 23:17:01 +00:00
wpmuValidateUserSignup.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00