[wp-trac] [WordPress Trac] #45132: Explore better implementation of Autosaves Controller unit tests

WordPress Trac noreply at wordpress.org
Fri Oct 19 13:55:25 UTC 2018


#45132: Explore better implementation of Autosaves Controller unit tests
------------------------------+----------------------------
 Reporter:  danielbachhuber   |      Owner:  (none)
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  Future Release
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:  needs-patch
  Focuses:  rest-api          |
------------------------------+----------------------------
 In [43768], we had to introduce an edge case where `tests/rest-api/rest-
 autosaves-controller.php` is run last in the test suite because the
 definition of `DOING_AUTOSAVE` pollutes the test suite.

 We can't remove `DOING_AUTOSAVE`, but we could potentially avoid defining
 it during a test suite run. Or maybe there are other ideas we can explore.

 "Done" for this issue would be a solution where `tests/rest-api/rest-
 autosaves-controller.php` can be tested as a part of the standard test
 suite execution order, not last.

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


More information about the wp-trac mailing list