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

WordPress Trac noreply at wordpress.org
Fri Oct 19 14:29:37 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            |  Resolution:
 Keywords:  needs-patch       |     Focuses:  rest-api
------------------------------+-----------------------------

Comment (by azaozz):

 A possible solution for this and other similar cases would be to introduce
 a helper function, perhaps `is_testing()` similar to `is_admin()`. We
 already have `WP_RUN_CORE_TESTS` defined when PHPUnit is running, but
 better to have something filterable :)

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


More information about the wp-trac mailing list