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

[CMS-392] Update behat tests to match language from cron checks #121

Merged
merged 1 commit into from
Mar 24, 2022

Conversation

CdrMarks
Copy link
Contributor

This is additional work that should have been part of #111.

Behat error: https://github.com/pantheon-systems/wp_launch_check/runs/5683321456?check_suite_focus=true

Scenario: WP Launch Check warns when DISABLE_WP_CRON is defined to be true                    # features/cron.feature:32
    Given a local-config.php file:                                                              # features/steps/given.php:20
      """
      <?php
      define( 'DISABLE_WP_CRON', true );
      """
    When I run `wp --require=local-config.php launchcheck cron`                                 # features/steps/when.php:24
    Then STDOUT should contain:                                                                 # features/steps/then.php:15
      """
      Cron appears to be disabled, make sure DISABLE_WP_CRON is not defined in your wp-config.php
      """
      $ wp --require=local-config.php launchcheck cron
      --------------------------------------------------------------------------------
      CRON: (Checking whether cron is enabled and what jobs are scheduled) 
      --------------------------------------------------------------------------------
      Result: Checking whether cron is enabled and what jobs are scheduled
      <ul class="check-list">
      	<li class="severity-error"><p class="result">WP-Cron is disabled.  Pantheon is running `wp cron event run --due-now` once per hour.</p></li>
<snip>

@CdrMarks CdrMarks requested a review from a team as a code owner March 24, 2022 22:10
@CdrMarks CdrMarks merged commit 7daa420 into main Mar 24, 2022
@jazzsequence jazzsequence deleted the cms-392-behat-cron-check branch May 25, 2023 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants