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/config-command/features/config-backcompat.feature
Feature: Backwards compatibility

  Scenario: wp config get --constant=<constant> --> wp config get <name> --type=constant
    Given a WP install

    When I run `wp config get --constant=DB_NAME`
    Then STDOUT should be:
      """
      wp_cli_test
      """

  Scenario: wp config get --global=<global> --> wp config get <name> --type=variable
    Given a WP install

    When I run `wp config get --global=table_prefix`
    Then STDOUT should be:
      """
      wp_
      """

  Scenario: wp config get --> wp config list
    Given an empty directory
    And WP files

    When I run `wp config create {CORE_CONFIG_SETTINGS} --skip-check`
    Then STDOUT should contain:
      """
      Generated 'wp-config.php' file.
      """

    When I run `wp config get --fields=name,type`
    Then STDOUT should be a table containing rows:
      | name               | type     |
      | DB_NAME            | constant |
      | DB_USER            | constant |
      | DB_PASSWORD        | constant |
      | DB_HOST            | constant |

    When I try `wp config get`
    Then STDOUT should be a table containing rows:
      | name | value | type |