wordpress-develop/tests/phpunit/tests/multisite
Sergey Biryukov ad31a2e424 Tests: Combine duplicate update_posts_count() tests.
This combines the newer test for `update_posts_count()` located in its own file with the pre-existing one from `tests/multisite/site.php`, which was essentially testing the same thing in a similar way.

Includes:
* Renaming the test class per the [https://make.wordpress.org/core/handbook/testing/automated-testing/writing-phpunit-tests/#naming-and-organization naming conventions].
* Adjusting comments per the documentation standards.
* Updating `@covers` tags for accuracy.
* Removing unnecessary blog switching.
* Using `assertSame()` to check the value type.

Follow-up to [28835], [29667], [52207].

See #57023, #56793.

git-svn-id: https://develop.svn.wordpress.org/trunk@54760 602fd350-edb4-49c9-b593-d223f7449a82
2022-11-07 17:45:29 +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 Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
network.php Networks and Sites: Revert the use of the metadata API for *_network_options functions. 2022-10-18 18:14:01 +00:00
site.php Tests: Combine duplicate update_posts_count() tests. 2022-11-07 17:45:29 +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 Tests: Rename classes in phpunit/tests/multisite/ per the naming conventions. 2021-09-24 00:45:43 +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 Tests: Combine duplicate update_posts_count() tests. 2022-11-07 17:45:29 +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 Networks and Sites: Improve cache key generation in WP_Network_Query class. 2022-04-07 17:57:59 +00:00
wpSiteQuery.php Networks and Sites: Improve cache key generation in WP_Site_Query class. 2022-04-07 17:44:34 +00:00