[wp-trac] [WordPress Trac] #38193: Unit test the "Roles and Capabilities" Codex page against core
WordPress Trac
noreply at wordpress.org
Fri Sep 30 22:22:17 UTC 2016
#38193: Unit test the "Roles and Capabilities" Codex page against core
-----------------------------+--------------------------
Reporter: johnbillion | Owner: johnbillion
Type: enhancement | Status: accepted
Priority: low | Milestone: 4.7
Component: Role/Capability | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-----------------------------+--------------------------
Changes (by johnbillion):
* keywords: needs-patch => has-patch
* milestone: Awaiting Review => 4.7
Comment:
[attachment:38193.patch] is a (currently failing) test that checks the
Codex page for the existence of an element with an `id` attribute matching
that of every capability used in core. This ensures that the
`Capabilities` list on the page includes an entry for every capability.
The tests are currently failing because the page is missing entries for
the following capabilities (which is the reason I decided to write this
test).
* `create_sites`
* `delete_sites`
* `upload_plugins`
* `upload_themes`
* `customize`
* `delete_site`
I might expand on these tests some more and increase the specificity.
Make yourself known if you think these tests should not be in core.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38193#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list