WordPress.org

Make WordPress Core

#26116 closed enhancement (wontfix)

Unit Tests: Add assertNotWPError() to complement assertWPError()

Reported by: georgestephanis Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Unit Tests Keywords:
Focuses: Cc:

Description

It's an easy fix, and makes it simpler to let tests make sure something has succeeded and isn't an error, as opposed to testing when hoping for an error.

Attachments (1)

assertNotWPError.diff (593 bytes) - added by georgestephanis 22 months ago.

Download all attachments as: .zip

Change History (5)

comment:1 @SergeyBiryukov22 months ago

  • Component changed from General to Unit Tests
  • Type changed from defect (bug) to enhancement

Per IRC discussion, assertWPError() should be removed instead.

comment:2 @nacin19 months ago

  • Owner set to nacin
  • Status changed from new to assigned

Others are probably using assertWPError(), so let's just close this.

comment:3 @nacin19 months ago

  • Owner nacin deleted

comment:4 @nacin19 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.