Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#23699 closed enhancement (fixed)

Better `wp_unique_filename` tests

Reported by: joehoyle's profile joehoyle Owned by: joehoyle's profile 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 12 years ago.

Download all attachments as: .zip

Change History (4)

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

  • Milestone changed from Awaiting Review to 3.6

#3 @SergeyBiryukov
12 years ago

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