L337xyz
Server: LiteSpeed
System: Linux in-mum-web831.main-hosting.eu 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64
User: u786315844 (786315844)
PHP: 7.4.33
Disabled: system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/.wp-cli/packages/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:
      """