Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#23699 closed enhancement (fixed)

Better `wp_unique_filename` tests

Reported by: joehoyle's profile joehoyle Owned by: joehoyle's profile joehoyle
Milestone: Priority: normal
Severity: normal Version:
Component: Unit Tests Keywords:
Focuses: Cc:


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

Download all attachments as: .zip

Change History (4)

#1 @joehoyle
11 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
11 years ago

  • Milestone changed from Awaiting Review to 3.6

#3 @SergeyBiryukov
11 years ago

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