Opened 8 years ago
Closed 7 years ago
#38193 closed enhancement (maybelater)
Unit test the "Roles and Capabilities" Codex page against core
Reported by: | johnbillion | Owned by: | johnbillion |
---|---|---|---|
Milestone: | Priority: | low | |
Severity: | normal | Version: | |
Component: | Role/Capability | Keywords: | has-patch |
Focuses: | Cc: |
Description
The Roles and Capabilities page on the Codex can be fetched in a test and its contents tested against the roles and capabilities that are tested in core, to ensure that all capabilities used in core are listed on the page.
Attachments (2)
Change History (10)
#3
@
8 years ago
- Keywords has-patch added; needs-patch removed
- Milestone changed from Awaiting Review to 4.7
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
8 years ago
Note: See
TracTickets for help on using
tickets.
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 theCapabilities
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.