Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from pmbaldha/20200312_PB_--config-file_param…
…_introduced
- Loading branch information
Showing
10 changed files
with
1,058 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
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 core config {CORE_CONFIG_SETTINGS} --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 |
Oops, something went wrong.