Skip to content

Commit cea6bff

Browse files
author
Ryan Wagner
committed
BUGS-6563: Tests STDOUT testing.
1 parent 6ead493 commit cea6bff

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

behat.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ default:
88
- Behat\MinkExtension\Context\MinkContext
99
- PantheonSystems\PantheonWordPressUpstreamTests\Behat\AdminLogIn
1010
- PantheonSystems\PantheonWordPressUpstreamTests\Behat\ResponseHeader
11+
- WP_CLI\Tests\Context\FeatureContext
1112
core:
1213
filters:
1314
tags: "~@upstreamonly"

tests/behat/wp-native-php-sessions.feature

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ Feature: WP Native PHP Sessions plugin
2323
When I go to "/?action=wpnps_get_session&key=foo"
2424
Then I should see "(foo:)"
2525

26+
When I run `echo "foo"`
27+
Then STDOUT should CONTAIN
28+
"""
29+
foo
30+
"""
31+
2632
Scenario: Plugin handles session CRUD operation (logged in)
2733
Given I log in as an admin
2834

0 commit comments

Comments
 (0)