[wp-trac] [WordPress Unit Tests] #121: Test running cron

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 17 00:36:40 UTC 2012


#121: Test running cron
-----------------------+-----------------
 Reporter:  kurtpayne  |      Owner:
     Type:  defect     |     Status:  new
 Priority:  normal     |  Milestone:
Component:  Cron       |   Keywords:
-----------------------+-----------------
 There were tests available in the legacy branch for running cron.  These
 were disabled because requiring wp-cron killed the unit tests.

 Let's revive this and split cron.php into its own folder with a class for
 scheduling crons and another class for running crons.

 Considerations:
  * Running crons needs to be done with process isolation -- this is quick,
 but should this be excluded from the default suite like ajax?
  * This patch uses a hack for preventing wp-cron.php from die-ing.  Should
 we patch core to use wp_die so this can be hijacked with a hook (like
 other unit tests)?

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


More information about the wp-trac mailing list