Make WordPress Core

Opened 17 months ago

Closed 14 months ago

Last modified 14 months ago

#57151 closed defect (bug) (fixed)

unittest for wp_check_filetype

Reported by: pbearne's profile pbearne Owned by: hellofromtonya's profile hellofromTonya
Milestone: 6.2 Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords: has-patch has-unit-tests commit
Focuses: Cc:


Change History (11)

#1 @pbearne
17 months ago

  • Component changed from General to Build/Test Tools

This ticket was mentioned in PR #3648 on WordPress/wordpress-develop by @pbearne.

17 months ago

  • Keywords has-patch has-unit-tests added

Just tests

Trac ticket: [](

#3 @costdev
17 months ago

  • Keywords changes-requested added
  • Milestone changed from Awaiting Review to 6.2

This ticket was mentioned in PR #4158 on WordPress/wordpress-develop by @costdev.

14 months ago

Refreshes #3648.

This adds tests for wp_check_filetype(), and achieves 100% line and branch coverage.

Trac ticket:

#5 @costdev
14 months ago

  • Keywords changes-requested removed

PR 4158 refreshes PR 3648 to improve compliance with standards, add a few extra datasets and improve existing dataset names.

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

14 months ago

#7 @hellofromTonya
14 months ago

  • Owner set to hellofromTonya
  • Status changed from new to reviewing

Self-assigning for commit ready and prep.

#8 @hellofromTonya
14 months ago

  • Keywords commit added

Ready for commit. Will prep shortly.

#9 @hellofromTonya
14 months ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 55456:

Build/Test Tools: Add wp_check_filetype() unit tests.

Adds a test class and data set for unit testing wp_check_filetype().

Props pbearne, costdev.
Fixes #57151.

Note: See TracTickets for help on using tickets.