Repository navigation
Commit 9708a3a
committed
Add a regression test for renamed-Phar config template resolution
A Phar renamed away from `wp-cli.phar` used to build malformed template
paths when generating a wp-config.php for an install in another directory
via --path, failing with "wp-config.mustache is not a file in phar".
Add a Bootstrap scenario that copies the freshly built Phar to a name
without an extension and runs `config create --path=subfolder` against a
separate install, so the fixed behavior is locked in and regressions are
caught. The fix itself lives in wp-cli/wp-cli's Path::phar_safe(), which
the bundled Phar picks up through the framework.
See wp-cli/config-command#141.1 parent 4b00784 commit 9708a3a
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
0 commit comments