Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#37405 closed task (blessed) (fixed)

Capability tests for non-logged-in users

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

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 10 years ago.

Download all attachments as: .zip

Change History (4)

@johnbillion
10 years ago

#1 @johnbillion
10 years ago

  • Keywords has-unit-tests added

#2 @johnbillion
10 years ago

  • Owner set to johnbillion
  • Resolution → fixed
  • Status new → closed

In 38096:

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

Fixes #37405

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