Skip to content

Commit 1d0abf2

Browse files
committed
Tests hardening for Windows
1 parent 4e1cce5 commit 1d0abf2

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

features/server.feature

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ Feature: Serve WordPress locally
1212
Just another WordPress site
1313
"""
1414

15-
When I run `curl -sS localhost:8181/license.txt > /tmp/license.txt`
16-
And I run `cmp /tmp/license.txt license.txt`
17-
Then STDOUT should be empty
15+
When I run `curl -sS localhost:8181/license.txt`
16+
Then STDOUT should contain:
17+
"""
18+
WordPress - Web publishing software
19+
"""
1820

1921
Scenario: Passthrough arguments to PHP binary
2022
Given a WP install
@@ -43,8 +45,7 @@ Feature: Serve WordPress locally
4345
Scenario: Pretty permalinks
4446
Given a WP install
4547
And I launch in the background `wp server --host=localhost --port=8183`
46-
And I run `wp option update permalink_structure '/%postname%/'`
47-
And I run `wp rewrite flush`
48+
And I run `wp rewrite structure '/%postname%/'`
4849

4950
When I run `curl -sSL http://localhost:8183/hello-world/`
5051
Then STDOUT should contain:

0 commit comments

Comments
 (0)