From aae87d864c865267dd0ba45a62b6389029daaac9 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Fri, 10 Apr 2026 09:59:13 +0200 Subject: [PATCH 1/3] Tests: Improve Windows compatibility --- features/media-import.feature | 3 ++- src/Media_Command.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/features/media-import.feature b/features/media-import.feature index 1a8ced91..b23185af 100644 --- a/features/media-import.feature +++ b/features/media-import.feature @@ -325,7 +325,8 @@ Feature: Manage WordPress attachments my-image.png.png """ Scenario: Fail to import from STDIN when no input provided - When I try `wp media import - Date: Fri, 10 Apr 2026 10:09:19 +0200 Subject: [PATCH 2/3] Update features/media-import.feature Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- features/media-import.feature | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/features/media-import.feature b/features/media-import.feature index b23185af..42fb1342 100644 --- a/features/media-import.feature +++ b/features/media-import.feature @@ -325,7 +325,9 @@ Feature: Manage WordPress attachments my-image.png.png """ Scenario: Fail to import from STDIN when no input provided - When I run `touch empty.txt` + Given an empty.txt file: + """ + """ And I try `wp media import - < empty.txt` Then STDERR should contain: """ From afd557ae8304295df0df4c82cd9789e03ff71ec0 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Fri, 10 Apr 2026 12:35:35 +0200 Subject: [PATCH 3/3] use php --- features/media-import.feature | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/features/media-import.feature b/features/media-import.feature index 42fb1342..312df3e5 100644 --- a/features/media-import.feature +++ b/features/media-import.feature @@ -325,9 +325,7 @@ Feature: Manage WordPress attachments my-image.png.png """ Scenario: Fail to import from STDIN when no input provided - Given an empty.txt file: - """ - """ + When I run `php -r "file_put_contents('empty.txt', '');"` And I try `wp media import - < empty.txt` Then STDERR should contain: """