Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incomplete test for alternate cron #37

Open
schlessera opened this issue Nov 24, 2018 · 0 comments
Open

Incomplete test for alternate cron #37

schlessera opened this issue Nov 24, 2018 · 0 comments

Comments

@schlessera
Copy link
Member

The test suite contains a test regarding an alternate cron that does not seem to be complete, it does never trigger any cron:

Scenario: Don't trigger cron when ALTERNATE_WP_CRON is defined
Given a alternate-wp-cron.php file:
"""
<?php
define( 'ALTERNATE_WP_CRON', true );
"""
And a wp-cli.yml file:
"""
require:
- alternate-wp-cron.php
"""
When I run `wp eval 'var_export( ALTERNATE_WP_CRON );'`
Then STDOUT should be:
"""
true
"""
When I run `wp option get home`
Then STDOUT should be:
"""
http://example.com
"""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant