Skip to content

Commit 7e43616

Browse files
committed
Require MySQL in feature tests
1 parent 409367c commit 7e43616

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

features/export.feature

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Feature: Export content.
4040
"""
4141
And the return code should be 1
4242

43-
@require-wp-5.2
43+
@require-wp-5.2 @require-mysql
4444
Scenario: Export with post_type and post_status argument
4545
Given a WP install
4646

@@ -79,7 +79,7 @@ Feature: Export content.
7979
10
8080
"""
8181

82-
@require-wp-5.2
82+
@require-wp-5.2 @require-mysql
8383
Scenario: Export a comma-separated list of post types
8484
Given a WP install
8585

@@ -132,7 +132,7 @@ Feature: Export content.
132132
10
133133
"""
134134

135-
@require-wp-5.2
135+
@require-wp-5.2 @require-mysql
136136
Scenario: Export only one post
137137
Given a WP install
138138

@@ -204,7 +204,7 @@ Feature: Export content.
204204
2
205205
"""
206206

207-
@require-wp-5.2
207+
@require-wp-5.2 @require-mysql
208208
Scenario: Export multiple posts, separated by spaces
209209
Given a WP install
210210

@@ -237,7 +237,7 @@ Feature: Export content.
237237
2
238238
"""
239239

240-
@require-wp-5.2
240+
@require-wp-5.2 @require-mysql
241241
Scenario: Export multiple posts, separated by comma
242242
Given a WP install
243243

@@ -270,7 +270,7 @@ Feature: Export content.
270270
2
271271
"""
272272

273-
@require-wp-5.2
273+
@require-wp-5.2 @require-mysql
274274
Scenario: Export posts within a given date range
275275
Given a WP install
276276

@@ -311,7 +311,7 @@ Feature: Export content.
311311
10
312312
"""
313313

314-
@require-wp-5.2
314+
@require-wp-5.2 @require-mysql
315315
Scenario: Export posts from a given category
316316
Given a WP install
317317
And I run `wp site empty --yes`
@@ -393,7 +393,7 @@ Feature: Export content.
393393
Apple Post
394394
"""
395395

396-
@require-wp-5.2
396+
@require-wp-5.2 @require-mysql
397397
Scenario: Export posts from a given author
398398
Given a WP install
399399
And I run `wp site empty --yes`
@@ -476,7 +476,7 @@ Feature: Export content.
476476
john.doe@example.com
477477
"""
478478

479-
@require-wp-5.2
479+
@require-wp-5.2 @require-mysql
480480
Scenario: Export posts should include user information
481481
Given a WP install
482482
And I run `wp plugin install wordpress-importer --activate`
@@ -503,7 +503,7 @@ Feature: Export content.
503503
Test User
504504
"""
505505

506-
@require-wp-5.2
506+
@require-wp-5.2 @require-mysql
507507
Scenario: Export posts from a given starting post ID
508508
Given a WP install
509509

@@ -542,7 +542,7 @@ Feature: Export content.
542542
5
543543
"""
544544

545-
@require-wp-5.2
545+
@require-wp-5.2 @require-mysql
546546
Scenario: Exclude a specific post type from export
547547
Given a WP install
548548
And I run `wp site empty --yes`
@@ -605,6 +605,7 @@ Feature: Export content.
605605
0
606606
"""
607607

608+
@require-mysql
608609
Scenario: Export posts using --max_num_posts
609610
Given a WP install
610611
And I run `wp site empty --yes`
@@ -648,7 +649,7 @@ Feature: Export content.
648649
000.xml
649650
"""
650651

651-
@require-wp-5.2
652+
@require-wp-5.2 @require-mysql
652653
Scenario: Export a site and skip the comments
653654
Given a WP install
654655
And I run `wp comment generate --post_id=1 --count=2`
@@ -828,7 +829,7 @@ Feature: Export content.
828829
"""
829830
And STDERR should be empty
830831

831-
@require-wp-5.2
832+
@require-wp-5.2 @require-mysql
832833
Scenario: Export a site to stdout
833834
Given a WP install
834835
And I run `wp comment generate --post_id=1 --count=1`
@@ -882,7 +883,7 @@ Feature: Export content.
882883
"""
883884
And the return code should be 1
884885

885-
@require-wp-5.2
886+
@require-wp-5.2 @require-mysql
886887
Scenario: Export individual post with attachments
887888
Given a WP install
888889
And I run `wp plugin install wordpress-importer --activate`
@@ -974,7 +975,7 @@ Feature: Export content.
974975
white-150-square.jpg";s:
975976
"""
976977

977-
@require-wp-5.2
978+
@require-wp-5.2 @require-mysql
978979
Scenario: Export categories, tags and terms
979980
Given a WP install
980981
And a wp-content/mu-plugins/register-region-taxonomy.php file:
@@ -1139,7 +1140,7 @@ Feature: Export content.
11391140
Europe
11401141
"""
11411142

1142-
@require-wp-5.2
1143+
@require-wp-5.2 @require-mysql
11431144
Scenario: Export posts should not include oembed_cache posts user information
11441145
Given a WP install
11451146
And I run `wp plugin install wordpress-importer --activate`
@@ -1171,7 +1172,7 @@ Feature: Export content.
11711172
Test User
11721173
"""
11731174

1174-
@require-wp-5.2
1175+
@require-wp-5.2 @require-mysql
11751176
Scenario: Allow export to proceed when orphaned terms are found
11761177
Given a WP install
11771178
And I run `wp term create category orphan --parent=1`
@@ -1235,4 +1236,4 @@ Feature: Export content.
12351236
Then STDERR should contain:
12361237
"""
12371238
Error: Term is missing a parent
1238-
"""
1239+
"""

0 commit comments

Comments
 (0)