WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#38236 closed enhancement (fixed)

Yet more complete user capability tests

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

Description

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
4 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
4 years ago

In 38861:

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

See #38236

#3 @johnbillion
4 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.