-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #133 from pantheon-systems/cms-845-native-php
[CMS-845] Don't recommend Native PHP Sessions if it's already installed
- Loading branch information
Showing
5 changed files
with
66 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Feature: Test for the existence of the PHP Native Sessions plugin | ||
|
||
Scenario: A WordPress install without the native sessions plugin | ||
Given a WP install | ||
|
||
When I run `wp launchcheck sessions` | ||
Then STDOUT should contain: | ||
""" | ||
Recommendation: You should install the Native PHP Sessions plugin - https://wordpress.org/plugins/wp-native-php-sessions/ | ||
""" | ||
|
||
Scenario: A WordPress install with the native sessions plugin installed but not active | ||
Given a WP install | ||
And I run `wp plugin install wp-native-php-sessions` | ||
|
||
When I run `wp launchcheck sessions` | ||
Then STDOUT should contain: | ||
""" | ||
Recommendation: You should install the Native PHP Sessions plugin - https://wordpress.org/plugins/wp-native-php-sessions/ | ||
""" | ||
|
||
Scenario: A WordPress install with the native sessions plugin installed and active | ||
Given a WP install | ||
And I run `wp plugin install wp-native-php-sessions` | ||
And I run `wp plugin activate wp-native-php-sessions` | ||
|
||
When I run `wp launchcheck sessions` | ||
Then STDOUT should contain: | ||
""" | ||
Recommendation: No action required | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters