Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#23699 closed enhancement (fixed)

Better `wp_unique_filename` tests

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

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

Download all attachments as: .zip

Change History (4)

#1 @joehoyle
14 years ago

  • Owner set to joehoyle
  • Resolution → fixed
  • Status new → closed

In 1238/tests:

better test for wp_unique_filename() fixes #23699

#2 @SergeyBiryukov
14 years ago

  • Milestone Awaiting Review → 3.6

#3 @SergeyBiryukov
14 years ago

  • Milestone 3.6 → WordPress.org
Note: See TracTickets for help on using tickets.