Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#38235 closed enhancement (fixed)

Reuse more fixtures in the user capability tests

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


Some of the tests in Tests_User_Capabilities create user accounts, but they can instead reuse the existing user account fixtures to speed things up.

Also some other misc improvements can be made to these tests.

Change History (3)

#1 @johnbillion
7 years ago

In 38731:

Role/Capability: Reuse some user account fixtures in the user capability tests.

See #38235

#2 @johnbillion
7 years ago

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

#3 @johnbillion
7 years ago

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

Note: See TracTickets for help on using tickets.