Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#35972 closed enhancement (fixed)

Unit test for test_bool_from_yn

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

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 11 years ago.
Improve code coverage

Download all attachments as: .zip

Change History (5)

@borgesbruno
11 years ago

Improve code coverage

#1 @borgesbruno
11 years ago

  • Keywords has-patch has-unit-tests added

#2 @SergeyBiryukov
11 years ago

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

In 36764:

Ad a unit test for bool_from_yn().

Props borgesbruno.
Fixes #35972.

#3 @SergeyBiryukov
11 years ago

  • Milestone Awaiting Review → 4.5

#4 @johnbillion
11 years ago

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