Skip to content

Commit 040ea4d

Browse files
Copilotswissspidy
andcommitted
Add Behat test for config create without WordPress bootstrap
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent e50b3c7 commit 040ea4d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

features/config-create.feature

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,3 +287,14 @@ Feature: Create a wp-config file
287287
"""
288288
define( 'DB_USER', 'wp_cli_test_ssl' )
289289
"""
290+
291+
Scenario: Create config without WordPress bootstrap
292+
Given an empty directory
293+
294+
When I run `wp config create --skip-check --dbname=testdb --dbuser=testuser --dbpass=testpass`
295+
Then the return code should be 0
296+
And STDOUT should contain:
297+
"""
298+
Success: Generated 'wp-config.php' file.
299+
"""
300+
And the wp-config.php file should exist

0 commit comments

Comments
 (0)