[wp-trac] [WordPress Trac] #47590: Add unit tests for requests to wp-cron.php
WordPress Trac
noreply at wordpress.org
Sun Jun 30 22:07:49 UTC 2019
#47590: Add unit tests for requests to wp-cron.php
------------------------------------------+-----------------------------
Reporter: peterwilsoncc | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Cron API | Version:
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+-----------------------------
Changes (by peterwilsoncc):
* keywords: needs-patch needs-unit-tests good-first-bug => needs-patch
needs-unit-tests
Comment:
@markedgarwilliamson Thanks for taking a look at this.
I apologize but the description of the ticket may have been confusing
which has sent you down the wrong path.
The functions in `/wp-includes/cron.php` already have unit tests. These
can be found in `/tests/phpunit/tests/cron.php`.
My goal is to add tests for calls to wp-site.example.com/wp-cron.php as
it's currently untested. This is the file that triggers the running of
registered cron jobs.
I'm not sure how best to test this myself as it's testing a WordPress
entry point rather than testing a particular WordPress function. I've
removed the `good-first-bug` keyword as I think there are much less
confusing tickets to start with.
You asked if you were doing something wrong altogether. This is definitely
not the case, any attempt to contribute to WordPress is of assistance and
greatly appreciated!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47590#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list