From 70b88c70321c3d8b2a4198c0df364cd670d1b0f7 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Thu, 19 Apr 2018 15:34:45 +0200 Subject: [PATCH] Start with an empty site to avoid count issues --- features/export.feature | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/features/export.feature b/features/export.feature index 3a13c3025..c4e28552b 100644 --- a/features/export.feature +++ b/features/export.feature @@ -392,13 +392,15 @@ Feature: Export content. Scenario: Exclude a specific post type from export Given a WP install + And I run `wp site empty --yes` + And I run `wp post create --post_title="Some page" --post_type=page` And I run `wp post generate --post_type=post --count=10` And I run `wp plugin install wordpress-importer --activate` When I run `wp post list --post_type=any --format=count` Then STDOUT should be: """ - 12 + 11 """ When I run `wp export --post_type__not_in=post`