[wp-trac] [WordPress Trac] #38574: Tests: Remove uploads added by REST API media tests

WordPress Trac noreply at wordpress.org
Sun Oct 30 21:27:53 UTC 2016


#38574: Tests: Remove uploads added by REST API media tests
------------------------------+-----------------------------
 Reporter:  jnylen0           |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:  trunk
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 Before this change, running the `WP_REST_Attachments_Controller` tests
 multiple times in a row fails because these tests do not clean up their
 uploaded files.  I do not see this error when running the full suite and
 I'm not sure why, but these files should still be cleaned up.

 Here is the error that happens on the 2nd run of these tests:

 {{{
 $ phpunit --filter WP_Test_REST_Attachments_Controller
 Installing...
 Running as single site... To run multisite, use -c
 tests/phpunit/multisite.xml
 Not running ajax tests. To execute these, use --group ajax.
 Not running ms-files tests. To execute these, use --group ms-files.
 Not running external-http tests. To execute these, use --group external-
 http.

 PHPUnit 4.8.22 by Sebastian Bergmann and contributors.

 .....................................F........................

 Time: 4.9 seconds, Memory: 172.25Mb

 There was 1 failure:

 1)
 WP_Test_REST_Attachments_Controller::test_create_item_default_filename_title
 Failed asserting that two strings are equal.
 --- Expected
 +++ Actual
 @@ @@
 -'codeispoetry'
 +'codeispoetry-1'
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38574>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list