Skip to content

Commit 59c4b8a

Browse files
author
fred
committed
Add a scenario and two tests
1 parent d09f0f2 commit 59c4b8a

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

‎features/export.feature‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,3 +1291,27 @@ Feature: Export content.
12911291
"""
12921292
2
12931293
"""
1294+
1295+
Scenario: Export term meta
1296+
Given a WP install
1297+
1298+
When I run `wp term meta add 1 term_metakey term_metavalue`
1299+
Then STDOUT should contain:
1300+
"""
1301+
Success:
1302+
"""
1303+
1304+
When I run `wp export`
1305+
And save STDOUT 'Writing to file %s' as {EXPORT_FILE}
1306+
Then the {EXPORT_FILE} file should contain:
1307+
"""
1308+
<wp:termmeta>
1309+
"""
1310+
And the {EXPORT_FILE} file should contain:
1311+
"""
1312+
<wp:meta_key><![CDATA[term_metakey]]></wp:meta_key>
1313+
"""
1314+
And the {EXPORT_FILE} file should contain:
1315+
"""
1316+
<wp:meta_value><![CDATA[term_metavalue]]></wp:meta_value>
1317+
"""

0 commit comments

Comments
 (0)