wordpress-develop/tests/phpunit/tests/multisite
SergeyBiryukov 54e1b4b959 Coding Standards: Use pre-increment/decrement for stand-alone statements.
Note: This is enforced by WPCS 3.0.0:

1. There should be no space between an increment/decrement operator and the variable it applies to.
2. Pre-increment/decrement should be favoured over post-increment/decrement for stand-alone statements. “Pre” will in/decrement and then return, “post” will return and then in/decrement. Using the “pre” version is slightly more performant and can prevent future bugs when code gets moved around.

References:
* [https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#increment-decrement-operators WordPress PHP Coding Standards: Increment/decrement operators]
* [https://github.com/WordPress/WordPress-Coding-Standards/pull/2130 WPCS: PR #2130 Core: add sniffs to check formatting of increment/decrement operators]

Props jrf.
See #59161, #58831.

git-svn-id: https://develop.svn.wordpress.org/trunk@56549 602fd350-edb4-49c9-b593-d223f7449a82
2023-09-09 09:26:01 +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 Coding Standards: Remove superfluous blank lines at the end of various classes. 2023-09-08 09:30:38 +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 Coding Standards: Remove superfluous blank lines at the end of various classes. 2023-09-08 09:30:38 +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 Coding Standards: Use pre-increment/decrement for stand-alone statements. 2023-09-09 09:26:01 +00:00
site.php Coding Standards: Use pre-increment/decrement for stand-alone statements. 2023-09-09 09:26:01 +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 Coding Standards: Remove superfluous blank lines at the end of various classes. 2023-09-08 09:30:38 +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