WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 3 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:

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

Download all attachments as: .zip

Change History (4)

@borgesbruno
4 years ago

#1 @borgesbruno
4 years ago

  • Keywords has-patch has-unit-tests added

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


3 months ago

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