wordpress-develop/tests/phpunit/tests/multisite
Jeremy Felt 0df4e1f026 Multisite: Use get_current_blog_id() in get_site() for current site.
The global `$current_blog` is not switched in `switch_to_blog()` and can
not be used to properly retrieve current switched site information.

See #37607.


git-svn-id: https://develop.svn.wordpress.org/trunk@38217 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-08 22:32:47 +00:00
..
bootstrap.php Multisite: Wrap the main bootstrap process in a function 2016-05-20 20:56:54 +00:00
getBlogDetails.php Tests: Split get_blog_details() test into individual tests 2016-06-09 15:57:37 +00:00
getSite.php Multisite: Use get_current_blog_id() in get_site() for current site. 2016-08-08 22:32:47 +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 Multisite: Change WP_Network id property to an integer. 2016-06-26 13:22:36 +00:00
networkQuery.php Multisite: Correct default value for orderby in WP_Network_Query::__construct(). 2016-07-19 13:09:39 +00:00
site.php Tests: Move get_blog_details() tests to their own file 2016-06-09 05:40:45 +00:00
siteQuery.php Multisite: Correct default values for orderby and order in WP_Site_Query::__construct(). 2016-07-17 23:29:11 +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
wpGetSites.php Multisite: Use to_array() method on WP_Site objects in wp_get_sites() 2016-06-09 18:09:25 +00:00
wpMSSitesListTable.php Multisite: Use WP_Site_Query to power WP_MS_Sites_List_Table. 2016-06-17 00:02:05 +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