wordpress-develop/tests/phpunit/tests/user
Sergey Biryukov ff56396bf3 Tests: Use the factory method instead of the property.
This replaces all references to the `WP_UnitTestCase_Base::$factory` property with static function calls to the `WP_UnitTestCase_Base::factory()` method.

This is a consistency improvement for the test suite.

Follow up to [35225], [35242], [49603], [54087], [54088].

Props jrf.
See #55652.

git-svn-id: https://develop.svn.wordpress.org/trunk@54090 602fd350-edb4-49c9-b593-d223f7449a82
2022-09-06 22:09:49 +00:00
..
author.php Tests: Update the terminology used for action or filter names in MockAction class. 2022-07-31 16:25:27 +00:00
capabilities.php Tests: Use the factory method instead of the property. 2022-09-06 22:09:49 +00:00
countUserPosts.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
countUsers.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
dateQuery.php Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
getActiveBlogForUser.php Tests: Rename classes in phpunit/tests/user/ per the naming conventions. 2022-06-11 15:48:31 +00:00
getUserCount.php Cache API: Validate cache key in WP_Object_Cache methods. 2022-08-03 14:34:58 +00:00
mapMetaCap.php Users: Fail gracefully when checking mapped capabilities without providing the required object ID. 2022-05-17 18:59:24 +00:00
multisite.php Tests: Rename classes in phpunit/tests/user/ per the naming conventions. 2022-06-11 15:48:31 +00:00
query.php Tests: Use the factory method instead of the property. 2022-09-06 22:09:49 +00:00
retrievePassword.php Docs: Further update the send_retrieve_password_email filter documentation for consistency. 2022-01-19 13:16:44 +00:00
session.php Code Modernization: Explicitly declare all properties created in set_up() methods of various test classes. 2022-08-27 12:30:08 +00:00
slashes.php Cache API: Validate cache key in WP_Object_Cache methods. 2022-08-03 14:34:58 +00:00
updateUserCaches.php Tests: Use assertInstanceOf() instead of assertTrue() in some tests. 2021-05-18 21:04:31 +00:00
wpAuthenticateSpamCheck.php Tests: Rename classes in phpunit/tests/user/ per the naming conventions. 2022-06-11 15:48:31 +00:00
wpDeleteUser.php Tests: Rename classes in phpunit/tests/user/ per the naming conventions. 2022-06-11 15:48:31 +00:00
wpDropdownUsers.php Tests: Use the factory method instead of the property. 2022-09-06 22:09:49 +00:00
wpGetUsersWithNoRole.php Tests: Rename classes in phpunit/tests/user/ per the naming conventions. 2022-06-11 15:48:31 +00:00
wpListAuthors.php Tests: Re-initialize WP_Rewrite before running wp_list_authors() tests. 2022-06-11 15:34:35 +00:00
wpListUsers.php Tests: Rename classes in phpunit/tests/user/ per the naming conventions. 2022-06-11 15:48:31 +00:00
wpSendUserRequest.php Tests: Rename classes in phpunit/tests/user/ per the naming conventions. 2022-06-11 15:48:31 +00:00
wpSetCurrentUser.php Tests: Rename classes in phpunit/tests/user/ per the naming conventions. 2022-06-11 15:48:31 +00:00