Skip to content

Commit 528bf48

Browse files
Copilotswissspidy
andauthored
Fix test: Add @require-mysql-or-mariadb tag and success assertions
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent d49c016 commit 528bf48

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎features/db-check.feature‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ Feature: Check the database
162162
When I try `wp db check --no-defaults --debug`
163163
Then STDERR should match #Debug \(db\): Running shell command: /usr/bin/env (mysqlcheck|mariadb-check) --no-defaults %s#
164164

165+
@require-mysql-or-mariadb
165166
Scenario: Empty DB credentials should not cause empty parameter errors
166167
Given a WP install
167168
And a wp-config.php file:
@@ -177,7 +178,12 @@ Feature: Check the database
177178
"""
178179

179180
When I try `wp db check --debug`
180-
Then STDERR should contain:
181+
Then the return code should be 0
182+
And STDOUT should contain:
183+
"""
184+
Success: Database checked.
185+
"""
186+
And STDERR should contain:
181187
"""
182188
Debug (db): Final MySQL command:
183189
"""

0 commit comments

Comments
 (0)