wordpress-develop/tests/phpunit/tests/user
Jeremy Felt e02c481487 Multisite: Use get_current_blog_id() instead of $wpdb->blogid.
`get_current_blog_id()` is more appropriate for determining the ID of the current site in most cases. This eliminates the need for the global `$wpdb` in several functions and is better than the implicit global used in admin pages.

Props bnap00, spacedmonkey.
Fixes #41684.


git-svn-id: https://develop.svn.wordpress.org/trunk@41661 602fd350-edb4-49c9-b593-d223f7449a82
2017-10-02 01:43:48 +00:00
..
author.php Formatting: Update the author description tests since the formatting change made in [41172]. 2017-07-27 16:05:19 +00:00
capabilities.php Build/Test tools: Update some test cases in anticipation of code formatting corrections. 2017-09-28 22:55:54 +00:00
countUserPosts.php Unit Tests: 2016-08-27 08:35:16 +00:00
countUsers.php Multisite: Fix count_users() possibly querying incorrect roles when passed a different site ID. 2017-09-30 03:53:27 +00:00
dateQuery.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
getActiveBlogForUser.php Multisite: Introduce tests for get_active_blog_for_user(). 2016-10-25 18:02:08 +00:00
listAuthors.php Unit Tests: 2016-08-27 08:35:16 +00:00
mapMetaCap.php Build/Test Tools: Replace test skipping with actual assertions when dealing with the DISALLOW_UNFILTERED_HTML, DISALLOW_FILE_MODS, and DISALLOW_FILE_EDIT constants. 2017-04-22 20:12:29 +00:00
multisite.php Multisite: Use get_current_blog_id() instead of $wpdb->blogid. 2017-10-02 01:43:48 +00:00
query.php Allow user searches to match the display_name field. 2017-07-01 14:21:50 +00:00
session.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
slashes.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
updateUserCaches.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
wpAuthenticateSpamCheck.php Build/Test Tools: Automatically skip tests in the ms-required and ms-excluded groups. 2017-05-01 20:34:10 +00:00
wpDeleteUser.php Build/Test Tools: Automatically skip tests in the ms-required and ms-excluded groups. 2017-05-01 20:34:10 +00:00
wpDropdownUsers.php Allow 'role' parameters to be passed to wp_dropdown_users(). 2016-09-25 17:44:24 +00:00
wpGetUsersWithNoRole.php Multisite: Fix wp_get_users_with_no_role() possibly including users with a role on a different site. 2017-09-30 04:09:11 +00:00
wpSetCurrentUser.php Unit Tests: 2016-08-27 08:35:16 +00:00