[wp-trac] [WordPress Trac] #30256: Create and exclude an area for ms-files.php specific unit tests

WordPress Trac noreply at wordpress.org
Wed Nov 5 06:40:14 UTC 2014


#30256: Create and exclude an area for ms-files.php specific unit tests
------------------------------+-----------------
 Reporter:  jeremyfelt        |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  4.1
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:
  Focuses:  multisite         |
------------------------------+-----------------
 In our current `test_switch_upload_dir()`, we turn `ms_files_rewriting` on
 half way through and then fire `ms_upload_constants()`. At the end of the
 test, we turn `ms_files_rewriting` off, but there is no way to reset the
 constants that are now there.

 If in another test we try to do the same thing, unpredictable results
 appear. Or predictable to be bad.

 I think we can treat tests that require `ms_files_rewriting` similar to
 our ajax tests and exclude them by default with the option to run them
 exclusively.

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


More information about the wp-trac mailing list