Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#36054 closed enhancement (fixed)

Unit test: Created test for mysql_to_rfc3339 method

Reported by: borgesbruno's profile borgesbruno Owned by: sergeybiryukov's profile 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 9 years ago.
Improve code coverage
test_functions_35987.diff (1.5 KB) - added by borgesbruno 9 years ago.
Fix typo
36054_fix.diff (1.2 KB) - added by borgesbruno 9 years ago.
Fix typo (Right patch)

Download all attachments as: .zip

Change History (7)

@borgesbruno
9 years ago

Improve code coverage

#1 @borgesbruno
9 years ago

  • Keywords has-patch has-unit-tests added

@borgesbruno
9 years ago

Fix typo

@borgesbruno
9 years ago

Fix typo (Right patch)

#2 @borgesbruno
9 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
9 years ago

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

#4 @SergeyBiryukov
9 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.