Skip to content

Commit 709f58c

Browse files
authored
Merge pull request #220 from wp-cli/fix/wp-debug-constant-test-failure
Fix "`WP_DEBUG` already defined" test failure
2 parents ed33052 + 67ee28e commit 709f58c

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

features/db.feature

+2-20
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Feature: Perform database operations
44
Given an empty directory
55
And WP files
66
And wp-config.php
7+
And I run `wp config set WP_DEBUG true --type=constant --raw`
78
And a session_no file:
89
"""
910
n
@@ -12,16 +13,6 @@ Feature: Perform database operations
1213
"""
1314
y
1415
"""
15-
And a wp-debug.php file:
16-
"""
17-
<?php
18-
define( 'WP_DEBUG', true );
19-
"""
20-
And a wp-cli.yml file:
21-
"""
22-
require:
23-
- wp-debug.php
24-
"""
2516

2617
When I try `wp option get home`
2718
Then STDOUT should be empty
@@ -65,16 +56,7 @@ Feature: Perform database operations
6556
Given an empty directory
6657
And WP files
6758
And wp-config.php
68-
And a wp-debug.php file:
69-
"""
70-
<?php
71-
define( 'WP_DEBUG', true );
72-
"""
73-
And a wp-cli.yml file:
74-
"""
75-
require:
76-
- wp-debug.php
77-
"""
59+
And I run `wp config set WP_DEBUG true --type=constant --raw`
7860
7961
When I try `wp option get home`
8062
Then STDOUT should be empty

0 commit comments

Comments
 (0)