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-edit.feature
Feature: Edit a wp-config file

  Scenario: Edit a wp-config.php file
    Given a WP install

    When I try `EDITOR='ex -i NONE -c q!' wp config edit;`
    Then STDERR should contain:
      """
      Warning: No changes made to wp-config.php, aborted.
      """
    And the return code should be 0

  @custom-config-file
  Scenario: Edit a wp-custom-config.php file
    Given an empty directory
    And WP files

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

    When I try `EDITOR='ex -i NONE -c q!' wp config edit --config-file=wp-custom-config.php`
    Then STDERR should contain:
      """
      No changes made to wp-custom-config.php, aborted.
      """
    And the return code should be 0