Skip to content

Commit 75e6d42

Browse files
authored
Merge pull request #69 from wp-cli/fix/menu-import-tests
Fix menu import tests
2 parents dc7b47b + fda0920 commit 75e6d42

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

features/import.feature

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,8 @@ Feature: Import content.
136136
2
137137
"""
138138

139-
@less-than-php-7 @require-wp-4.0
139+
@require-wp-4.0
140140
Scenario: Export and import page and referencing menu item
141-
# This will not work with WP 3.7.11 or PHP 7.
142-
# PHP 7 issue: https://wordpress.org/support/topic/importer-fails-to-import-menu-items-in-php7
143141
Given a WP install
144142
And I run `wp site empty --yes`
145143
And I run `wp post generate --count=1`
@@ -161,6 +159,9 @@ Feature: Import content.
161159
When I run `wp site empty --yes`
162160
Then STDOUT should not be empty
163161

162+
When I run `wp menu create "My Menu"`
163+
Then STDOUT should not be empty
164+
164165
When I run `wp post list --post_type=page --format=count`
165166
Then STDOUT should be:
166167
"""
@@ -212,7 +213,7 @@ Feature: Import content.
212213
2
213214
"""
214215

215-
@less-than-php-7 @require-wp-4.0
216+
@require-wp-4.0
216217
Scenario: Export and import page and referencing menu item in separate files
217218
Given a WP install
218219
And I run `wp site empty --yes`
@@ -236,6 +237,9 @@ Feature: Import content.
236237
When I run `wp site empty --yes`
237238
Then STDOUT should not be empty
238239

240+
When I run `wp menu create "My Menu"`
241+
Then STDOUT should not be empty
242+
239243
When I run `wp post list --post_type=page --format=count`
240244
Then STDOUT should be:
241245
"""

0 commit comments

Comments
 (0)