HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/local/wp/vendor/wp-cli/entity-command/features/term-generate.feature
Feature: Generate WP terms

  Background:
    Given a WP install

  Scenario: Generating terms
    When I run `wp term generate category --count=10`
    And I run `wp term list category --format=count`
    Then STDOUT should be:
      """
      11
      """

  Scenario: Generating terms when terms already exist
    When I run `wp term generate category --count=10`
    And I run `wp term generate category --count=10`
    And I run `wp term list category --format=count`
    Then STDOUT should be:
      """
      21
      """

  Scenario: Generating terms and outputting ids
    When I run `wp term generate category --count=1 --format=ids`
    Then save STDOUT as {TERM_ID}

    When I run `wp term update category {TERM_ID} --name="foo"`
    Then STDOUT should contain:
      """
      Success:
      """