WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#36054 closed enhancement (fixed)

Unit test: Created test for mysql_to_rfc3339 method

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

Description

There weren't tests for the mysql_to_rfc3339(), so, to improve the code coverage, I wrote some tests for this method.

Attachments (3)

36054.diff (1.2 KB) - added by borgesbruno 3 years ago.
Improve code coverage
test_functions_35987.diff (1.5 KB) - added by borgesbruno 3 years ago.
Fix typo
36054_fix.diff (1.2 KB) - added by borgesbruno 3 years ago.
Fix typo (Right patch)

Download all attachments as: .zip

Change History (7)

@borgesbruno
3 years ago

Improve code coverage

#1 @borgesbruno
3 years ago

  • Keywords has-patch has-unit-tests added

@borgesbruno
3 years ago

Fix typo

@borgesbruno
3 years ago

Fix typo (Right patch)

#2 @borgesbruno
3 years ago

Desconsider the test_functions_35987.diff patch, isn't belong to this ticket, but I wasn't able to remove from the trac.

#3 @SergeyBiryukov
3 years ago

  • Component changed from General to Date/Time
  • Milestone changed from Awaiting Review to 4.5

#4 @SergeyBiryukov
3 years ago

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

In 36832:

Date/Time: Add a unit test for mysql_to_rfc3339().

Props borgesbruno.
Fixes #36054.

Note: See TracTickets for help on using tickets.