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/extension-command/features/theme-mod-list.feature
Feature: Manage WordPress theme mods list

  Background:
    Given a WP install
    And I run `wp theme mod set key_a value_a`
    And I run `wp theme mod set key_b value_b`

  Scenario: Getting theme mods
    When I run `wp theme mod list`
    Then STDOUT should be a table containing rows:
      | key  | value   |

    When I run `wp theme mod list --field=key`
    Then STDOUT should be:
      """
      key_a
      key_b
      """

    When I run `wp theme mod list --field=value`
    Then STDOUT should be:
      """
      value_a
      value_b
      """

    When I run `wp theme mod list --format=json`
    Then STDOUT should be:
      """
      [{"key":"key_a","value":"value_a"},{"key":"key_b","value":"value_b"}]
      """

    When I run `wp theme mod list --format=csv`
    Then STDOUT should be:
      """
      key,value
      key_a,value_a
      key_b,value_b
      """

    When I run `wp theme mod list --format=yaml`
    Then STDOUT should be:
      """
      ---
      - 
        key: key_a
        value: value_a
      - 
        key: key_b
        value: value_b
      """