Make WordPress Core

Opened 5 years ago

Last modified 20 months ago

#37005 new enhancement

Unit test for the wp_check_filetype method

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


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 5 years ago.

Download all attachments as: .zip

Change History (4)

5 years ago

#1 @borgesbruno
5 years ago

  • Keywords has-patch has-unit-tests added

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

20 months ago

#3 @markparnell
20 months 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.