Skip to content

Commit 6fede96

Browse files
authored
Tests: Further improve Windows compatibility (#327)
1 parent 158a8bb commit 6fede96

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

features/core-download.feature

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,10 @@ Feature: Download WordPress
386386
"""
387387
And the return code should be 1
388388

389+
@skip-windows
390+
Scenario: Fail if path can't be created (root-level-directory)
391+
Given an empty directory
392+
389393
When I try `wp core download --path=/root-level-directory`
390394
Then STDERR should contain:
391395
"""

features/core.feature

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,12 @@ Feature: Manage WordPress installation
209209
"""
210210
And the return code should be 0
211211
212-
When I run `wp eval 'echo $GLOBALS["current_site"]->domain;'`
212+
Given a current-site-domain.php file:
213+
"""
214+
<?php
215+
echo $GLOBALS['current_site']->domain;
216+
"""
217+
When I run `wp eval-file current-site-domain.php`
213218
Then STDOUT should be:
214219
"""
215220
foobar.org
@@ -296,6 +301,7 @@ Feature: Manage WordPress installation
296301
http://localhost:8001
297302
"""
298303
304+
@skip-windows
299305
Scenario: Test output in a multisite install with custom base path
300306
Given a WP install
301307

0 commit comments

Comments
 (0)