Skip to content

Incomplete test for alternate cron #37

@schlessera

Description

@schlessera

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
"""

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions