Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions features/server.feature
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ Feature: Serve WordPress locally
Just another WordPress site
"""

When I run `curl -sS localhost:8181/license.txt > /tmp/license.txt`
And I run `cmp /tmp/license.txt license.txt`
Then STDOUT should be empty
When I run `curl -sS localhost:8181/license.txt`
Comment thread
swissspidy marked this conversation as resolved.
Outdated
Then STDOUT should contain:
"""
WordPress - Web publishing software
"""

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

When I run `curl -sSL http://localhost:8183/hello-world/`
Then STDOUT should contain:
Expand Down
Loading