Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#38191 closed defect (bug) (fixed)

Further hardening of the role and capability tests

Reported by: johnbillion Owned by: johnbillion
Priority: normal Milestone: 4.7
Component: Role/Capability Version: 4.7
Severity: normal Keywords:
Cc: Focuses:

Description

Followup to #32394, in particular [38521].

The role and capability tests are now split into those for primitive capabilities and those for meta capabilities. Further testing shows that some meta capabilities have been incorrectly listed as primitive, and vice versa.

Tests can be introduced to test these tests.

Change History (8)

#1 @johnbillion
10 years ago

  • Owner set to johnbillion
  • Status new → accepted

#2 @johnbillion
10 years ago

  • Component Users → Role/Capability

#3 @johnbillion
10 years ago

In 38696:

Role/Capability: Correct some meta capabilities that were incorrectly listed as primitive capabilities in the role and capability tests.

See #38191

#4 @johnbillion
10 years ago

  • Resolution → fixed
  • Status accepted → closed

In 38697:

Role/Capability: Introduce tests that assert the primitive and meta capability tests test the correct capabilities.

Fixes #38191

#5 @johnbillion
10 years ago

  • Keywords needs-patch removed

#6 @swissspidy
10 years ago

  • Milestone Awaiting Review → 4.7

#7 @johnbillion
10 years ago

In 38769:

Role/Capability: Add tests for all user roles that check custom capabilities that do not have any form of handling (eg. in a map_meta_cap filter).

See #38191

#8 @johnbillion
10 years ago

In 38802:

Role/Capability: Disregard the order of capabilities when testing that single site and multisite capability tests match.

See #38191

Note: See TracTickets for help on using tickets.