WordPress.org

Make WordPress Core

#37849 closed defect (bug) (fixed)

assertQueryTrue() doesn't handle is_front_page()

Reported by: johnbillion Owned by: johnbillion
Milestone: 4.7 Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords: needs-patch needs-unit-tests
Focuses: Cc:

Description

is_front_page() is missing from the list of query conditionals in WP_UnitTestCase::assertQueryTrue().

Attachments (1)

37849.patch (1.3 KB) - added by johnbillion 22 months ago.

Download all attachments as: .zip

Change History (2)

@johnbillion
22 months ago

#1 @johnbillion
22 months ago

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

In 38405:

Build/Test Tools: Add support for is_front_page() to assertQueryTrue() and assert that all the tested conditions are supported by the method.

Fixes #37849

Note: See TracTickets for help on using tickets.