Skip to content

Commit

Permalink
BUGS-6563: Tests STDOUT testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Wagner committed Sep 21, 2023
1 parent 6ead493 commit cea6bff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions behat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ default:
- Behat\MinkExtension\Context\MinkContext
- PantheonSystems\PantheonWordPressUpstreamTests\Behat\AdminLogIn
- PantheonSystems\PantheonWordPressUpstreamTests\Behat\ResponseHeader
- WP_CLI\Tests\Context\FeatureContext
core:
filters:
tags: "~@upstreamonly"
Expand Down
6 changes: 6 additions & 0 deletions tests/behat/wp-native-php-sessions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ Feature: WP Native PHP Sessions plugin
When I go to "/?action=wpnps_get_session&key=foo"
Then I should see "(foo:)"

When I run `echo "foo"`
Then STDOUT should CONTAIN
"""
foo
"""

Scenario: Plugin handles session CRUD operation (logged in)
Given I log in as an admin

Expand Down

0 comments on commit cea6bff

Please sign in to comment.