wordpress-develop/tests/phpunit/tests/xmlrpc/wp
John Blackbourn 17ef6d8cfa Taxonomy: Introduce more fine grained capabilities for managing taxonomy terms.
This introduces the singular `edit_term`, `delete_term`, and `assign_term` meta capabilities for terms, and switches the base capability name for tags from `manage_categories` to `manage_post_tags` and the corresponding `edit_post_tags`, `delete_post_tags`, and `assign_post_tags`.

All of these capabilities ultimately map to `manage_categories` so by default there is no change in the behaviour of the capabilities for categories, tags, or custom taxonomies. The `map_meta_cap` filter and the `capabilities` argument when registering a taxonomy now allow for control over editing, deleting, and assigning individual terms, as well as a separation of capabilities for tags from those of categories.

Fixes #35614
Props johnjamesjacoby for feedback


git-svn-id: https://develop.svn.wordpress.org/trunk@38698 602fd350-edb4-49c9-b593-d223f7449a82
2016-09-30 22:39:32 +00:00
..
deletePost.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
deleteTerm.php Taxonomy: Introduce more fine grained capabilities for managing taxonomy terms. 2016-09-30 22:39:32 +00:00
editComment.php Text Changes: Unify permission error messages. 2016-06-29 15:15:40 +00:00
editPost.php XMLRPC: Unit tests left off [r37043] 2016-03-22 15:11:06 +00:00
editProfile.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
editTerm.php Taxonomy: Introduce more fine grained capabilities for managing taxonomy terms. 2016-09-30 22:39:32 +00:00
getComment.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
getComments.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
getMediaItem.php Unit Tests: consolidate the many separate implementations of _make_attachment() into a helper method on WP_UnitTestCase. 2015-10-21 01:58:52 +00:00
getOptions.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
getPage.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
getPageList.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
getPages.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
getPost.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
getPosts.php Build/Test Tools: Remove many unnecessary calls to rand_str() which can, in theory, fail at random. Static strings are much more appropriate. 2016-08-26 20:21:30 +00:00
getPostType.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
getPostTypes.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
getProfile.php * sort() returns a boolean, not a sorted set. Move the calls out of the assertions and fix the test methods. 2013-09-12 06:41:36 +00:00
getRevisions.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
getTaxonomies.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
getTaxonomy.php Unit Tests: Account for the string changes in [38077]. 2016-07-17 16:23:31 +00:00
getTerm.php Taxonomy: Introduce more fine grained capabilities for managing taxonomy terms. 2016-09-30 22:39:32 +00:00
getTerms.php Build/Test Tools: Remove many unnecessary calls to rand_str() which can, in theory, fail at random. Static strings are much more appropriate. 2016-08-26 20:21:30 +00:00
getUser.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
getUsers.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
newComment.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
newPost.php Build/Test Tools: Remove many unnecessary calls to rand_str() which can, in theory, fail at random. Static strings are much more appropriate. 2016-08-26 20:21:30 +00:00
newTerm.php Unit Tests: Account for the string changes in [38077]. 2016-07-17 16:23:31 +00:00
restoreRevision.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
setOptions.php Fix a multisite test failure by testing an option that can be updated in multisite. 2014-04-10 21:09:33 +00:00
uploadFile.php Remove failing xmlrpc upload test. 2015-09-26 20:31:57 +00:00