File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -81,3 +81,17 @@ Feature: Bootstrap WP-CLI
8181 Status: Inactive
8282 """
8383 And STDERR should be empty
84+
85+ Scenario : Mustache templates should be resolved correctly when PHAR is renamed without extension
86+
87+ Given an empty directory
88+ And a new Phar with the same version
89+ And I run `php {PHAR_PATH} core download`
90+
91+ When I run `cp {PHAR_PATH} wp-renamed`
92+ And I run `php wp-renamed config create --dbname=wordpress --dbuser=user --dbpass=pass --skip-check`
93+ Then STDOUT should contain:
94+ """
95+ Success: Generated 'wp-config.php' file.
96+ """
97+ And STDERR should be empty
Original file line number Diff line number Diff line change 1010}
1111
1212// Store the path to the Phar early on for `Utils\phar-safe-path()` function.
13- define ( 'WP_CLI_PHAR_PATH ' , Phar::running ( true ) );
13+ define ( 'WP_CLI_PHAR_PATH ' , Phar::running ( false ) );
1414
1515if ( file_exists ( 'phar://wp-cli.phar/php/wp-cli.php ' ) ) {
1616 define ( 'WP_CLI_ROOT ' , 'phar://wp-cli.phar ' );
You can’t perform that action at this time.
0 commit comments