[wp-trac] [WordPress Trac] #54612: Disable WP_CRON when installing PHPUnit tests

WordPress Trac noreply at wordpress.org
Sun Dec 12 15:47:00 UTC 2021

#54612: Disable WP_CRON when installing PHPUnit tests
 Reporter:  Chouby            |       Owner:  SergeyBiryukov
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  5.9
Component:  Build/Test Tools  |     Version:  3.7
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch         |     Focuses:
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


 In [changeset:"52359" 52359]:
 #!CommitTicketReference repository="" revision="52359"
 Build/Test Tools: Disable WP Cron when installing PHPUnit tests.

 During the WordPress installation process when running the test suite, an
 HTTP request was always fired by a cron task and failed, because tests are
 run in CLI mode only.

 To avoid that, the `DISABLE_WP_CRON` constant was previously added to the
 `bootstrap.php` file. However, the constant is not passed to the
 `install.php` script. This commit makes a similar change to `install.php`.

 Follow-up to [760/tests], [872/tests].

 Props Chouby.
 Fixes #54612.

Ticket URL: <https://core.trac.wordpress.org/ticket/54612#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list