[Wp-unit-tests] [WordPress Unit Tests] #33: Fix failed tests in WPTestAttachments

WordPress Unit Tests noreply at wordpress.org
Tue Apr 10 23:25:58 UTC 2012


#33: Fix failed tests in WPTestAttachments
----------------------------+--------------------------------
 Reporter:  kurtpayne       |      Owner:
     Type:  defect          |     Status:  new
 Priority:  major           |  Milestone:  Fix existing Tests
Component:  Test Framework  |    Version:
 Keywords:  attachments     |
----------------------------+--------------------------------
 Uploaded files are not being removed between tests.  When new files are
 uploaded in subsequent tests, their names are incremented by
 `wp_unique_filename()`, and this throws off the assertions.

 This fix can be implemented in just `WPTestAttachments::tearDown()` but we
 should consider putting it in `WPTestCase::tearDown()` so it's effective
 for all tests.

-- 
Ticket URL: <http://unit-tests.trac.wordpress.org/ticket/33>
WordPress Unit Tests <http://unit-tests.trac.wordpress.org>
My example project


More information about the wp-unit-tests mailing list