wordpress-develop/tests/phpunit/tests/multisite
Jonny Harris 1a5b52a17e Networks and Sites: Lazy load site meta.
In [36566] a framework to lazily load metadata was introduced. This supported term and comment meta by default. In this commit, extends support for site ( blog ) meta. Site meta is not heavily used by core and is used by developers to extend multisite. In this change, `_prime_site_caches` and `WP_Site_Query` now call the new function `wp_lazyload_site_meta`. The function `wp_lazyload_site_meta` accepts an array of ids and adds them to the queue of metadata to be lazily loaded. The function `get_blogs_of_user` was updated to now lazily load site meta. 

Follow on from [55671].

Props spacedmonkey, johnjamesjacoby, peterwilsoncc, mukesh27.
Fixes #58185.

git-svn-id: https://develop.svn.wordpress.org/trunk@55747 602fd350-edb4-49c9-b593-d223f7449a82
2023-05-11 11:13:10 +00:00
..
avoidBlogPagePermalinkCollision.php Tests: Further improve the tests for avoid_blog_page_permalink_collision(): 2021-09-24 00:29:46 +00:00
bootstrap.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
cleanDirsizeCache.php Tests: Revert removing empty directory in WP_UnitTestCase_Base::rmdir() for now. 2022-09-25 04:47:02 +00:00
getBlogDetails.php Tests: Rename classes in phpunit/tests/multisite/ per the naming conventions. 2021-09-24 00:45:43 +00:00
getIdFromBlogname.php Tests: Rename classes in phpunit/tests/multisite/ per the naming conventions. 2021-09-24 00:45:43 +00:00
getMainSiteId.php Networks and Sites: Store main site id of a network in network options. 2022-09-20 14:24:08 +00:00
getSite.php Tests: Rename classes in phpunit/tests/multisite/ per the naming conventions. 2021-09-24 00:45:43 +00:00
getSpaceAllowed.php Tests: Remove unnecessary setUp() and tearDown() methods in multisite tests. 2021-09-25 01:27:47 +00:00
getSpaceUsed.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
isEmailAddressUnsafe.php Code is Poetry. 2017-11-30 23:09:33 +00:00
isUploadSpaceAvailable.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
msFilesRewriting.php Tests: Clean up test file in wpmu_delete_blog() tests. 2022-11-22 20:17:08 +00:00
network.php Tests: Use the function get_num_queries across all unit tests. 2023-05-11 10:05:51 +00:00
site.php Tests: Use the function get_num_queries across all unit tests. 2023-05-11 10:05:51 +00:00
siteDetails.php Tests: Rename classes in phpunit/tests/multisite/ per the naming conventions. 2021-09-24 00:45:43 +00:00
siteMeta.php Networks and Sites: Lazy load site meta. 2023-05-11 11:13:10 +00:00
updateBlogDetails.php Tests: Move update_blog_status() tests to their own file. 2022-11-06 16:19:15 +00:00
updateBlogStatus.php Tests: Move update_blog_status() tests to their own file. 2022-11-06 16:19:15 +00:00
updatePostsCount.php Posts, Post Types: Pass the post object to _update_posts_count_on_delete(). 2023-02-24 01:21:54 +00:00
uploadIsUserOverQuota.php Tests: Remove unnecessary setUp() and tearDown() methods in multisite tests. 2021-09-25 01:27:47 +00:00
wpCountSites.php Tests: Split the tests from multisite.php into individual test classes. 2022-10-31 12:55:20 +00:00
wpGetSites.php Tests: Rename classes in phpunit/tests/multisite/ per the naming conventions. 2021-09-24 00:45:43 +00:00
wpInstallDefaults.php Tests: Use the factory method instead of the property. 2022-09-06 22:09:49 +00:00
wpMsSitesListTable.php Administration: Add new get_views_links method to WP_List_Table. 2022-09-19 21:06:08 +00:00
wpMsThemesListTable.php Administration: Add new get_views_links method to WP_List_Table. 2022-09-19 21:06:08 +00:00
wpMsUsersListTable.php Administration: Add new get_views_links method to WP_List_Table. 2022-09-19 21:06:08 +00:00
wpmuLogNewRegistrations.php Tests: Split the tests from multisite.php into individual test classes. 2022-10-31 12:55:20 +00:00
wpmuValidateBlogSignup.php Tests: Rename classes in phpunit/tests/multisite/ per the naming conventions. 2021-09-24 00:45:43 +00:00
wpmuValidateUserSignup.php Tests: Rename classes in phpunit/tests/multisite/ per the naming conventions. 2021-09-24 00:45:43 +00:00
wpNetworkQuery.php Tests: Use the function get_num_queries across all unit tests. 2023-05-11 10:05:51 +00:00
wpSiteQuery.php Tests: Use the function get_num_queries across all unit tests. 2023-05-11 10:05:51 +00:00