Skip to content

Commit 7449550

Browse files
Merge pull request #16 from wp-cli/suppress_error_log
Suppress error in search-replace-export.feature.
2 parents bb99b41 + baa2177 commit 7449550

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

features/search-replace-export.feature

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,12 @@ Feature: Search / replace with file export
153153

154154
Scenario: Search / replace export invalid file
155155
Given a WP install
156+
And a suppress-error-log.php file:
157+
"""
158+
<?php ini_set( 'error_log', null );
159+
"""
156160

157-
When I try `wp search-replace example.com example.net --export=foo/bar.sql`
161+
When I try `wp --require=suppress-error-log.php search-replace example.com example.net --export=foo/bar.sql`
158162
Then STDERR should contain:
159163
"""
160164
Error: Unable to open "foo/bar.sql" for writing.

0 commit comments

Comments
 (0)