@@ -22,7 +22,7 @@ Feature: Import content.
2222 """
2323
2424 When I run `wp export`
25- And save STDOUT 'Writing to file %s' as {EXPORT_FILE}
25+ Then save STDOUT 'Writing to file %s' as {EXPORT_FILE}
2626
2727 When I run `wp site empty --yes`
2828 Then STDOUT should not be empty
@@ -59,15 +59,15 @@ Feature: Import content.
5959 And I run `wp site empty --yes`
6060
6161 When I run `wp post generate --count=50`
62- When I run `wp post generate --post_type=page --count=50`
62+ And I run `wp post generate --post_type=page --count=50`
6363 And I run `wp post list --post_type=post,page --format=count`
6464 Then STDOUT should be:
6565 """
6666 100
6767 """
6868
6969 When I run `wp export --dir=export-posts --post_type=post`
70- When I run `wp export --dir=export-pages --post_type=page`
70+ And I run `wp export --dir=export-pages --post_type=page`
7171 Then STDOUT should not be empty
7272
7373 When I run `wp site empty --yes`
@@ -106,8 +106,8 @@ Feature: Import content.
106106 Given a WP install
107107 And I run `mkdir export`
108108 And I run `wp site empty --yes`
109- When I run `wp post generate --count=1`
110- When I run `wp post generate --post_type=page --count=1`
109+ And I run `wp post generate --count=1`
110+ And I run `wp post generate --post_type=page --count=1`
111111
112112 When I run `wp post list --post_type=post,page --format=count`
113113 Then STDOUT should be:
@@ -320,38 +320,38 @@ Feature: Import content.
320320 (in file wordpress.000.xml)
321321 """
322322
323- @require-wp-5.2
324- Scenario : Handling of non-existing files and directories
325- Given a WP install
326- And I run `wp plugin install --activate wordpress-importer`
327- And I run `wp export`
328- And save STDOUT 'Writing to file %s' as {EXPORT_FILE}
329- And an empty 'empty_test_directory' directory
323+ @require-wp-5.2
324+ Scenario : Handling of non-existing files and directories
325+ Given a WP install
326+ And I run `wp plugin install --activate wordpress-importer`
327+ And I run `wp export`
328+ And save STDOUT 'Writing to file %s' as {EXPORT_FILE}
329+ And an empty 'empty_test_directory' directory
330330
331- When I try `wp import non_existing_relative_file_path.xml --authors=skip`
332- Then STDERR should contain:
331+ When I try `wp import non_existing_relative_file_path.xml --authors=skip`
332+ Then STDERR should contain:
333333 """
334334 Warning:
335335 """
336- Then the return code should be 1
336+ And the return code should be 1
337337
338- When I try `wp import non_existing_relative_file_path.xml {EXPORT_FILE} --authors=skip`
339- Then STDERR should contain:
338+ When I try `wp import non_existing_relative_file_path.xml {EXPORT_FILE} --authors=skip`
339+ Then STDERR should contain:
340340 """
341341 Warning:
342342 """
343- Then the return code should be 0
343+ And the return code should be 0
344344
345- When I try `wp import empty_test_directory --authors=skip`
346- Then STDERR should contain:
345+ When I try `wp import empty_test_directory --authors=skip`
346+ Then STDERR should contain:
347347 """
348348 Warning:
349349 """
350- Then the return code should be 1
350+ And the return code should be 1
351351
352- When I try `wp import empty_test_directory non_existing_relative_file_path.xml --authors=skip`
353- Then STDERR should contain:
352+ When I try `wp import empty_test_directory non_existing_relative_file_path.xml --authors=skip`
353+ Then STDERR should contain:
354354 """
355355 Warning:
356356 """
357- Then the return code should be 1
357+ And the return code should be 1
0 commit comments