You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/export.feature
+25-21Lines changed: 25 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ Feature: Export content.
40
40
"""
41
41
And the return code should be 1
42
42
43
-
@require-wp-5.2@require-mysql
43
+
@require-wp-5.2
44
44
Scenario: Export with post_type and post_status argument
45
45
Given a WP install
46
46
@@ -79,7 +79,7 @@ Feature: Export content.
79
79
10
80
80
"""
81
81
82
-
@require-wp-5.2@require-mysql
82
+
@require-wp-5.2
83
83
Scenario: Export a comma-separated list of post types
84
84
Given a WP install
85
85
@@ -132,7 +132,7 @@ Feature: Export content.
132
132
10
133
133
"""
134
134
135
-
@require-wp-5.2@require-mysql
135
+
@require-wp-5.2
136
136
Scenario: Export only one post
137
137
Given a WP install
138
138
@@ -203,7 +203,7 @@ Feature: Export content.
203
203
2
204
204
"""
205
205
206
-
@require-wp-5.2@require-mysql
206
+
@require-wp-5.2
207
207
Scenario: Export multiple posts, separated by spaces
208
208
Given a WP install
209
209
@@ -236,7 +236,7 @@ Feature: Export content.
236
236
2
237
237
"""
238
238
239
-
@require-wp-5.2@require-mysql
239
+
@require-wp-5.2
240
240
Scenario: Export multiple posts, separated by comma
241
241
Given a WP install
242
242
@@ -269,7 +269,7 @@ Feature: Export content.
269
269
2
270
270
"""
271
271
272
-
@require-wp-5.2@require-mysql
272
+
@require-wp-5.2
273
273
Scenario: Export posts within a given date range
274
274
Given a WP install
275
275
@@ -310,7 +310,7 @@ Feature: Export content.
310
310
10
311
311
"""
312
312
313
-
@require-wp-5.2@require-mysql
313
+
@require-wp-5.2
314
314
Scenario: Export posts from a given category
315
315
Given a WP install
316
316
And I run `wp site empty --yes`
@@ -392,7 +392,7 @@ Feature: Export content.
392
392
Apple Post
393
393
"""
394
394
395
-
@require-wp-5.2@require-mysql
395
+
@require-wp-5.2
396
396
Scenario: Export posts from a given author
397
397
Given a WP install
398
398
And I run `wp site empty --yes`
@@ -475,7 +475,7 @@ Feature: Export content.
475
475
john.doe@example.com
476
476
"""
477
477
478
-
@require-wp-5.2@require-mysql
478
+
@require-wp-5.2
479
479
Scenario: Export posts should include user information
480
480
Given a WP install
481
481
And I run `wp plugin install wordpress-importer --activate`
@@ -502,7 +502,7 @@ Feature: Export content.
502
502
Test User
503
503
"""
504
504
505
-
@require-wp-5.2@require-mysql
505
+
@require-wp-5.2
506
506
Scenario: Export posts from a given starting post ID
507
507
Given a WP install
508
508
@@ -520,7 +520,11 @@ Feature: Export content.
520
520
10
521
521
"""
522
522
523
-
When I run `wp export --start_id=6`
523
+
# Read the 6th post's ID instead of hardcoding --start_id=6. SQLite does not reset auto-increment on `wp site empty`, so generated IDs aren't always 1..10.
524
+
When I run `wp post list --post_type=post --orderby=ID --order=ASC --posts_per_page=1 --offset=5 --format=ids`
525
+
Then save STDOUT as {START_ID}
526
+
527
+
When I run `wp export --start_id={START_ID}`
524
528
Then save STDOUT 'Writing to file %s' as {EXPORT_FILE}
525
529
526
530
When I run `wp site empty --yes`
@@ -541,7 +545,7 @@ Feature: Export content.
541
545
5
542
546
"""
543
547
544
-
@require-wp-5.2@require-mysql
548
+
@require-wp-5.2
545
549
Scenario: Exclude a specific post type from export
0 commit comments