Make WordPress Core

Opened 8 years ago

Last modified 4 years ago

#37005 new enhancement

Unit test for the wp_check_filetype method

Reported by: borgesbruno's profile borgesbruno Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Media Keywords: has-patch has-unit-tests needs-refresh
Focuses: Cc:

Description

Improving the code coverage for the functions.php, to be more precise the wp_check_filetype method, this one hadn't any tests written, decreasing the overall code coverage. Now, the test covers the entire logic

Attachments (1)

37005.diff (1.4 KB) - added by borgesbruno 8 years ago.

Download all attachments as: .zip

Change History (4)

@borgesbruno
8 years ago

#1 @borgesbruno
8 years ago

  • Keywords has-patch has-unit-tests added

This ticket was mentioned in Slack in #core by noisysocks. View the logs.


4 years ago

#3 @markparnell
4 years ago

  • Component changed from General to Media
  • Keywords needs-refresh added

Looks like wp_check_filetype() now has tests thanks to #39550. Not sure if the one proposed here has any additional improvements that should be added in?

Note: See TracTickets for help on using tickets.