Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#37405 closed task (blessed) (fixed)

Capability tests for non-logged-in users

Reported by: johnbillion's profile johnbillion Owned by: johnbillion's profile johnbillion
Milestone: 4.6 Priority: low
Severity: normal Version:
Component: Role/Capability Keywords: has-unit-tests
Focuses: Cc:

Description

In Tests_User_Capabilities we have comprehensive tests for all user roles, but none for non-logged-in users.

While it might seem obvious that a non-logged-in user cannot have any capabilities, having tests to ensure this will help protect us with regard to any future refactoring of authentication code.

Attachments (1)

37405.patch (593 bytes) - added by johnbillion 9 years ago.

Download all attachments as: .zip

Change History (4)

@johnbillion
9 years ago

#1 @johnbillion
9 years ago

  • Keywords has-unit-tests added

#2 @johnbillion
9 years ago

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

In 38096:

Role/Capability: Introduce capability tests for non-logged-in users.

Fixes #37405

#3 @johnbillion
8 years ago

In 40563:

Users: Add two missing special cases to the capability tests for non-logged-in users.

Also updates a expectedIncorrectUsage notation.

See #37405

Note: See TracTickets for help on using tickets.