Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#38236 closed enhancement (fixed)

Yet more complete user capability tests

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


Some existing user capability tests can be made more complete by ensuring that all relevant roles and capabilities are tested where appropriate.

Change History (3)

#1 @johnbillion
7 years ago

  • Owner set to johnbillion
  • Resolution set to fixed
  • Status changed from new to closed

In 38732:

Role/capability: Add more complete capability and role assertions to existing user capability tests. Also reuses one more user account fixtures.

Fixes #38236
See #38235

#2 @johnbillion
7 years ago

In 38861:

Role/Capability: Add tests for the exist user capability.

See #38236

#3 @johnbillion
7 years ago

In 39035:

Role/Capability: Introduce capability tests for promoting, removing, and deleting users, and capability tests for editing comments.

Also introduces a shared fixture for a super admin user.

See #38236

Note: See TracTickets for help on using tickets.