WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#35972 closed enhancement (fixed)

Unit test for test_bool_from_yn

Reported by: borgesbruno Owned by: SergeyBiryukov
Milestone: 4.5 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch has-unit-tests
Focuses: Cc:
PR Number:

Description

This method test_bool_from_yn is really simple, but there were not any tests for that, so. I really decided to help to improve the code coverage of the file wp-includes/functions.php then I made a simple test for a simple method.

Attachments (1)

35972.diff (558 bytes) - added by borgesbruno 4 years ago.
Improve code coverage

Download all attachments as: .zip

Change History (5)

@borgesbruno
4 years ago

Improve code coverage

#1 @borgesbruno
4 years ago

  • Keywords has-patch has-unit-tests added

#2 @SergeyBiryukov
4 years ago

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

In 36764:

Ad a unit test for bool_from_yn().

Props borgesbruno.
Fixes #35972.

#3 @SergeyBiryukov
4 years ago

  • Milestone changed from Awaiting Review to 4.5

#4 @johnbillion
4 years ago

  • Version trunk deleted
Note: See TracTickets for help on using tickets.