@@ -314,7 +314,10 @@ Feature: Export content.
314314 Scenario : Export posts from a given category
315315 Given a WP install
316316 And I run `wp site empty --yes`
317- And I run `wp plugin install wordpress-importer --activate`
317+ And these installed and active plugins:
318+ """
319+ wordpress-importer
320+ """
318321
319322 When I run `wp term create category Apple --porcelain`
320323 Then STDOUT should be a number
@@ -396,7 +399,10 @@ Feature: Export content.
396399 Scenario : Export posts from a given author
397400 Given a WP install
398401 And I run `wp site empty --yes`
399- And I run `wp plugin install wordpress-importer --activate`
402+ And these installed and active plugins:
403+ """
404+ wordpress-importer
405+ """
400406
401407 When I run `wp user create john john.doe@example.com --porcelain`
402408 Then STDOUT should be a number
@@ -478,7 +484,10 @@ Feature: Export content.
478484 @require-wp-5.2
479485 Scenario : Export posts should include user information
480486 Given a WP install
481- And I run `wp plugin install wordpress-importer --activate`
487+ And these installed and active plugins:
488+ """
489+ wordpress-importer
490+ """
482491 And I run `wp user create user user@user.com --role=editor --display_name="Test User" `
483492 And I run `wp post generate --post_type=post --count=10 --post_author=user`
484493
@@ -551,7 +560,10 @@ Feature: Export content.
551560 And I run `wp site empty --yes`
552561 And I run `wp post create --post_title="Some page" --post_type=page`
553562 And I run `wp post generate --post_type=post --count=10`
554- And I run `wp plugin install wordpress-importer --activate`
563+ And these installed and active plugins:
564+ """
565+ wordpress-importer
566+ """
555567
556568 When I run `wp post list --post_type=any --format=count`
557569 Then STDOUT should be:
@@ -670,7 +682,10 @@ Feature: Export content.
670682 Scenario : Export a site and skip the comments
671683 Given a WP install
672684 And I run `wp comment generate --post_id=1 --count=2`
673- And I run `wp plugin install wordpress-importer --activate`
685+ And these installed and active plugins:
686+ """
687+ wordpress-importer
688+ """
674689
675690 When I run `wp comment list --format=count`
676691 Then STDOUT should contain:
@@ -851,7 +866,10 @@ Feature: Export content.
851866 Scenario : Export a site to stdout
852867 Given a WP install
853868 And I run `wp comment generate --post_id=1 --count=1`
854- And I run `wp plugin install wordpress-importer --activate`
869+ And these installed and active plugins:
870+ """
871+ wordpress-importer
872+ """
855873
856874 When I run `wp export --stdout > export.xml`
857875 Then STDOUT should be empty
@@ -904,7 +922,10 @@ Feature: Export content.
904922 @require-wp-5.2
905923 Scenario : Export individual post with attachments
906924 Given a WP install
907- And I run `wp plugin install wordpress-importer --activate`
925+ And these installed and active plugins:
926+ """
927+ wordpress-importer
928+ """
908929 And I run `wp site empty --yes`
909930
910931 When I run `wp post generate --count=10`
@@ -1012,7 +1033,10 @@ Feature: Export content.
10121033 }
10131034 add_action( 'init', 'wp_cli_region_taxonomy' );
10141035 """
1015- And I run `wp plugin install wordpress-importer --activate`
1036+ And these installed and active plugins:
1037+ """
1038+ wordpress-importer
1039+ """
10161040 And I run `wp site empty --yes`
10171041
10181042 When I run `wp term create category News --description="A news article" --porcelain`
@@ -1165,9 +1189,14 @@ Feature: Export content.
11651189 @require-wp-5.2
11661190 Scenario : Export posts should not include oembed_cache posts user information
11671191 Given a WP install
1168- And I run `wp plugin install wordpress-importer --activate`
1169- And I run `wp user create user user@user.com --role=editor --display_name="Test User" `
1170- And I run `wp user create oembed_cache_user oembed_cache@user.com --role=editor --display_name="Oembed User" `
1192+ And these installed and active plugins:
1193+ """
1194+ wordpress-importer
1195+ """
1196+ And these setup commands:
1197+ | command |
1198+ | wp user create user user @user .com --role =editor --display_name ="Test User " |
1199+ | wp user create oembed_cache_user oembed_cache @user .com --role =editor --display_name ="Oembed User " |
11711200 And I run `wp post generate --post_type=post --count=10 --post_author=user`
11721201 And I run `wp post generate --post_type=oembed_cache --count=1 --post_author=oembed_cache_user`
11731202
@@ -1197,12 +1226,14 @@ Feature: Export content.
11971226 @require-wp-5.2
11981227 Scenario : Allow export to proceed when orphaned terms are found
11991228 Given a WP install
1200- And I run `wp term create category orphan --parent=1`
1201- And I run `wp term create category parent`
1202- And I run `wp term create category child --parent=3`
1203- And I run `wp term create post_tag atag`
1204- And I run `wp term create post_tag btag`
1205- And I run `wp term create post_tag ctag`
1229+ And these setup commands:
1230+ | command |
1231+ | wp term create category orphan --parent =1 |
1232+ | wp term create category parent |
1233+ | wp term create category child --parent =3 |
1234+ | wp term create post_tag atag |
1235+ | wp term create post_tag btag |
1236+ | wp term create post_tag ctag |
12061237 And I run `wp db query "DELETE FROM wp_terms WHERE term_id = 1" `
12071238
12081239 When I run `wp export --allow_orphan_terms`
@@ -1217,7 +1248,10 @@ Feature: Export content.
12171248 """
12181249
12191250 When I run `wp site empty --yes`
1220- And I run `wp plugin install wordpress-importer --activate`
1251+ And these installed and active plugins:
1252+ """
1253+ wordpress-importer
1254+ """
12211255 And I run `wp import {EXPORT_FILE} --authors=skip`
12221256 Then STDOUT should contain:
12231257 """
@@ -1292,7 +1326,10 @@ Feature: Export content.
12921326 @require-wp-5.2
12931327 Scenario : Export posts with future status
12941328 Given a WP install
1295- And I run `wp plugin install wordpress-importer --activate`
1329+ And these installed and active plugins:
1330+ """
1331+ wordpress-importer
1332+ """
12961333 And I run `wp site empty --yes`
12971334
12981335 When I run `wp post create --post_title='Future Post 1' --post_status=future --post_date='2050-01-01 12:00:00' --porcelain`
0 commit comments