wp-cli / db-command

Performs basic database operations using credentials stored in wp-config.php.
MIT License
71 stars 59 forks source link

Fix broken tests due to DB connection failure error message change #224

Closed schlessera closed 2 years ago

schlessera commented 2 years ago

The message that WordPress Core produces when it couldn't connect to the database has changed.

This PR makes the test more flexible to deal with both versions of the error string.