Skip to content

Commit 86a2c3b

Browse files
Copilotswissspidy
andauthored
Fix test: Use localhost DB_HOST and test empty DB_CHARSET instead
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent 528bf48 commit 86a2c3b

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

‎features/db-check.feature‎

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -171,29 +171,26 @@ Feature: Check the database
171171
define( 'DB_NAME', 'wp_cli_test' );
172172
define( 'DB_USER', 'wp_cli_test' );
173173
define( 'DB_PASSWORD', 'password1' );
174-
define( 'DB_HOST', '' );
175-
define( 'DB_CHARSET', 'utf8' );
174+
define( 'DB_HOST', 'localhost' );
175+
define( 'DB_CHARSET', '' );
176+
define( 'DB_COLLATE', '' );
176177
$table_prefix = 'wp_';
177178
require_once ABSPATH . 'wp-settings.php';
178179
"""
179180

180-
When I try `wp db check --debug`
181+
When I run `wp db check --debug`
181182
Then the return code should be 0
182183
And STDOUT should contain:
183184
"""
184185
Success: Database checked.
185186
"""
186-
And STDERR should contain:
187-
"""
188-
Debug (db): Final MySQL command:
189-
"""
190187
And STDERR should not contain:
191188
"""
192-
--host=''
189+
--default-character-set=''
193190
"""
194191
And STDERR should not contain:
195192
"""
196-
--host=
193+
--default-character-set=
197194
"""
198195

199196
@require-sqlite

0 commit comments

Comments
 (0)