<commit_before>Feature: Wordpress code scaffolding
  
  Scenario: Scaffold a Custom Post Type
      Given a WP install

      When I run `wp scaffold post-type zombie`
      Then it should run without errors
      And STDOUT should contain:
        """
        __( 'Zombies'
        """
          
  Scenario: Scaffold a Custom Post Type with label
    Given a WP install

    When I run `wp scaffold post-type zombie --label="Brain eater"`
    Then it should run without errors
    And STDOUT should contain:
      """
      __( 'Brain eaters'
      """<commit_msg>Added CPT and TAX --flags test and TAX --theme test<commit_after>Feature: Wordpress code scaffolding

  Scenario: Scaffold a Custom Taxonomy and write it to active theme
    Given a WP install

    When I run `wp scaffold taxonomy zombie-speed --theme`
    Then it should run without errors

    When I run `wp option get stylesheet`
    Then it should run without errors
    And save STDOUT as {ACTIVE_THEME}

    #And the wp-content/{ACTIVE_THEME}/taxonomy/zombie-speed.php file should exist
    And the wp-content/themes/twentytwelve/taxonomies/zombie-speed.php file should exist

  # Test for all flags but --label, --theme, --plugin and --raw
  Scenario: Scaffold a Custom Taxonomy and attach it to a CPT zombie that is prefixed and has a text domain
    Given a WP install

    When I run `wp scaffold taxonomy zombie-speed --post_types="prefix-zombie" --textdomain=zombieland`
    Then it should run without errors
    And STDOUT should contain:
      """
      __( 'Zombie speeds'
      """
    And STDOUT should contain:
      """
      array( 'prefix-zombie' )
      """
    And STDOUT should contain:
      """
      __( 'Zombie speeds', 'zombieland'
      """

  Scenario: Scaffold a Custom Taxonomy with label "Speed"
    Given a WP install

    When I run `wp scaffold taxonomy zombie-speed --label="Speed"`
    Then it should run without errors
    And STDOUT should contain:
        """
        __( 'Speed'
        """



  # Test for all flags but --label, --theme, --plugin and --raw
  Scenario: Scaffold a Custom Post Type
    Given a WP install

    When I run `wp scaffold post-type zombie --textdomain=zombieland`
    Then it should run without errors
    And STDOUT should contain:
      """
      __( 'Zombies'
      """
    And STDOUT should contain:
      """
      __( 'Zombies', 'zombieland'
      """

  Scenario: Scaffold a Custom Post Type with label
    Given a WP install

    When I run `wp scaffold post-type zombie --label="Brain eater"`
    Then it should run without errors
    And STDOUT should contain:
      """
      __( 'Brain eaters'
      """
{'fraction_non_alphanumeric': 0.07953260459856766, 'fraction_numerical': 0.0, 'mean_word_length': 2.4557291666666665, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4521039', 'n_tokens_mistral': 798, 'n_tokens_neox': 759, 'n_words': 314}