WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#38235 closed enhancement (fixed)

Reuse more fixtures in the user capability tests

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

Description

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

In 38731:

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

See #38235

#2 @johnbillion
4 years ago

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

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