WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#23699 closed enhancement (fixed)

Better `wp_unique_filename` tests

Reported by: joehoyle Owned by: joehoyle
Milestone: WordPress.org Priority: normal
Severity: normal Version:
Component: Unit Tests Keywords:
Focuses: Cc:

Description

I refactored the wp_unique_filename test case, as it was rather old and too complicated. The new tests are a lot more linear with no looping, no requirement to write to filesystem. Also, the old one didn't work if you had wp installed in a path with spaces

Attachments (1)

test-functions.diff (5.4 KB) - added by joehoyle 5 years ago.

Download all attachments as: .zip

Change History (4)

#1 @joehoyle
5 years ago

  • Owner set to joehoyle
  • Resolution set to fixed
  • Status changed from new to closed

In 1238/tests:

better test for wp_unique_filename() fixes #23699

#2 @SergeyBiryukov
5 years ago

  • Milestone changed from Awaiting Review to 3.6

#3 @SergeyBiryukov
5 years ago

  • Milestone changed from 3.6 to WordPress.org
Note: See TracTickets for help on using tickets.