WordPress.org

Make WordPress Core

Opened 14 months ago

Closed 14 months ago

Last modified 14 months 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 14 months ago.

Download all attachments as: .zip

Change History (4)

joehoyle14 months ago

comment:1 joehoyle14 months 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

comment:2 SergeyBiryukov14 months ago

  • Milestone changed from Awaiting Review to 3.6

comment:3 SergeyBiryukov14 months ago

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