wp-cli / wp-cli-tests

WP-CLI testing framework
MIT License
36 stars 22 forks source link

SQLite: fix `wp-config.php` creation #187

Closed swissspidy closed 8 months ago

swissspidy commented 8 months ago

wp config create by default checks the database connection when trying to create the wp-config.php file, and uses die()when the connection fails. This happens on CI because there is no MySQL server running.

https://github.com/wp-cli/config-command/blob/ca25b73e798657ac1846c99b96d3ae8d22be4f34/src/Config_Command.php#L159-L171