From eacef1ed48475269a840f0b9eb89a54cfbd88c2d Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Wed, 12 May 2021 17:44:20 +0100 Subject: [PATCH 1/3] Fix menu import tests --- features/import.feature | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/features/import.feature b/features/import.feature index dde41acdc..1d41709ca 100644 --- a/features/import.feature +++ b/features/import.feature @@ -161,6 +161,9 @@ Feature: Import content. When I run `wp site empty --yes` Then STDOUT should not be empty + When I run `wp menu create "My Menu"` + Then STDOUT should not be empty + When I run `wp post list --post_type=page --format=count` Then STDOUT should be: """ @@ -236,6 +239,9 @@ Feature: Import content. When I run `wp site empty --yes` Then STDOUT should not be empty + When I run `wp menu create "My Menu"` + Then STDOUT should not be empty + When I run `wp post list --post_type=page --format=count` Then STDOUT should be: """ From 3da7a41e939d1377bcbac5d3577e942379ff6de0 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Wed, 12 May 2021 17:47:37 +0100 Subject: [PATCH 2/3] Test compat --- features/import.feature | 4 ---- 1 file changed, 4 deletions(-) diff --git a/features/import.feature b/features/import.feature index 1d41709ca..3f33b6ee1 100644 --- a/features/import.feature +++ b/features/import.feature @@ -136,10 +136,7 @@ Feature: Import content. 2 """ - @less-than-php-7 @require-wp-4.0 Scenario: Export and import page and referencing menu item - # This will not work with WP 3.7.11 or PHP 7. - # PHP 7 issue: https://wordpress.org/support/topic/importer-fails-to-import-menu-items-in-php7 Given a WP install And I run `wp site empty --yes` And I run `wp post generate --count=1` @@ -215,7 +212,6 @@ Feature: Import content. 2 """ - @less-than-php-7 @require-wp-4.0 Scenario: Export and import page and referencing menu item in separate files Given a WP install And I run `wp site empty --yes` From fda0920028a7d182a01321d87c8b6eab5bd8877a Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Wed, 12 May 2021 17:51:10 +0100 Subject: [PATCH 3/3] Require more recent version of WP --- features/import.feature | 2 ++ 1 file changed, 2 insertions(+) diff --git a/features/import.feature b/features/import.feature index 3f33b6ee1..492970f76 100644 --- a/features/import.feature +++ b/features/import.feature @@ -136,6 +136,7 @@ Feature: Import content. 2 """ + @require-wp-4.0 Scenario: Export and import page and referencing menu item Given a WP install And I run `wp site empty --yes` @@ -212,6 +213,7 @@ Feature: Import content. 2 """ + @require-wp-4.0 Scenario: Export and import page and referencing menu item in separate files Given a WP install And I run `wp site empty --yes`