Skip to content

Commit

Permalink
Merge pull request #220 from wp-cli/fix/wp-debug-constant-test-failure
Browse files Browse the repository at this point in the history
Fix "`WP_DEBUG` already defined" test failure
  • Loading branch information
schlessera authored Jan 25, 2022
2 parents 6441550 + c6ed7a9 commit 9cddf6b
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions features/db.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Feature: Perform database operations
Given an empty directory
And WP files
And wp-config.php
And I run `wp config set WP_DEBUG true --type=constant --raw`
And a session_no file:
"""
n
Expand All @@ -12,16 +13,6 @@ Feature: Perform database operations
"""
y
"""
And a wp-debug.php file:
"""
<?php
define( 'WP_DEBUG', true );
"""
And a wp-cli.yml file:
"""
require:
- wp-debug.php
"""

When I try `wp option get home`
Then STDOUT should be empty
Expand Down Expand Up @@ -65,16 +56,7 @@ Feature: Perform database operations
Given an empty directory
And WP files
And wp-config.php
And a wp-debug.php file:
"""
<?php
define( 'WP_DEBUG', true );
"""
And a wp-cli.yml file:
"""
require:
- wp-debug.php
"""
And I run `wp config set WP_DEBUG true --type=constant --raw`
When I try `wp option get home`
Then STDOUT should be empty
Expand Down

0 comments on commit 9cddf6b

Please sign in to comment.