<commit_before>Feature: Check for more recent versions

  Scenario: Check for update via Version Check API
    Given a WP install

    When I run `wp core download --version=4.4 --force`
    Then STDOUT should not be empty

    When I run `wp core check-update`
    Then STDOUT should be a table containing rows:
      | version | update_type | package_url                                                  |
      | 4.5.3   | major       | https://downloads.wordpress.org/release/wordpress-4.5.3.zip  |
      | 4.4.4   | minor       | https://downloads.wordpress.org/release/wordpress-4.4.4-partial-0.zip |

    When I run `wp core check-update --format=count`
    Then STDOUT should be:
      """
      2
      """

    When I run `wp core check-update --major`
    Then STDOUT should be a table containing rows:
      | version | update_type | package_url                                                  |
      | 4.5.3   | major       | https://downloads.wordpress.org/release/wordpress-4.5.3.zip  |

    When I run `wp core check-update --major --format=count`
    Then STDOUT should be:
      """
      1
      """

    When I run `wp core check-update --minor`
    Then STDOUT should be a table containing rows:
      | version | update_type | package_url                                |
      | 4.4.4   | minor       | https://downloads.wordpress.org/release/wordpress-4.4.4-partial-0.zip |

    When I run `wp core check-update --minor --format=count`
    Then STDOUT should be:
      """
      1
      """

  @less-than-php-7
  Scenario: No minor updates for an unlocalized WordPress release
    Given a WP install

    When I run `wp core download --version=4.0 --locale=es_ES --force`
    Then STDOUT should contain:
      """
      Success: WordPress downloaded.
      """

    When I run `wp core check-update --minor`
    Then STDOUT should be a table containing rows:
      | version | update_type | package_url                                        |
      | 4.0.12  | minor       | https://downloads.wordpress.org/release/wordpress-4.0.12-partial-0.zip |
<commit_msg>Update tests for WordPress 4.7<commit_after>Feature: Check for more recent versions

  Scenario: Check for update via Version Check API
    Given a WP install

    When I run `wp core download --version=4.4 --force`
    Then STDOUT should not be empty

    When I run `wp core check-update`
    Then STDOUT should be a table containing rows:
      | version | update_type | package_url                                                  |
      | 4.6     | major       | https://downloads.wordpress.org/release/wordpress-4.6.zip    |
      | 4.4.4   | minor       | https://downloads.wordpress.org/release/wordpress-4.4.4-partial-0.zip |

    When I run `wp core check-update --format=count`
    Then STDOUT should be:
      """
      2
      """

    When I run `wp core check-update --major`
    Then STDOUT should be a table containing rows:
      | version | update_type | package_url                                                  |
      | 4.6     | major       | https://downloads.wordpress.org/release/wordpress-4.6.zip    |

    When I run `wp core check-update --major --format=count`
    Then STDOUT should be:
      """
      1
      """

    When I run `wp core check-update --minor`
    Then STDOUT should be a table containing rows:
      | version | update_type | package_url                                |
      | 4.4.4   | minor       | https://downloads.wordpress.org/release/wordpress-4.4.4-partial-0.zip |

    When I run `wp core check-update --minor --format=count`
    Then STDOUT should be:
      """
      1
      """

  @less-than-php-7
  Scenario: No minor updates for an unlocalized WordPress release
    Given a WP install

    When I run `wp core download --version=4.0 --locale=es_ES --force`
    Then STDOUT should contain:
      """
      Success: WordPress downloaded.
      """

    When I run `wp core check-update --minor`
    Then STDOUT should be a table containing rows:
      | version | update_type | package_url                                        |
      | 4.0.12  | minor       | https://downloads.wordpress.org/release/wordpress-4.0.12-partial-0.zip |

{'fraction_non_alphanumeric': 0.09949892627057981, 'fraction_numerical': 0.020042949176807445, 'mean_word_length': 1.7150259067357514, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 27, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2744356', 'n_tokens_mistral': 1244, 'n_tokens_neox': 1176, 'n_words': 376}