Skip to content

Commit

Permalink
Merge pull request #168 from pantheon-systems/SITE-1499
Browse files Browse the repository at this point in the history
  • Loading branch information
stovak authored Jan 9, 2025
2 parents dab1ace + 6eee5a9 commit 0e0cf07
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions features/general.feature
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ Feature: General tests of WP Launch Check
WordPress domains are verified to be in sync with Pantheon domains.
"""

Scenario: WordPress is up to date
Scenario: WordPress is up-to-date
Given a WP install

When I run `wp core version`
# This check is here to remind us to update versions when new releases are available.
Then STDOUT should contain:
"""
6.6
6.7
"""

When I run `wp launchcheck general`
Expand Down
4 changes: 2 additions & 2 deletions features/sessions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Feature: Test for the existence of the PHP Native Sessions plugin
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/
Recommendation: You should ensure that the Native PHP Sessions plugin is installed and activated - https://wordpress.org/plugins/wp-native-php-sessions/
"""

Scenario: A WordPress install with the native sessions plugin installed but not active
Expand All @@ -16,7 +16,7 @@ Feature: Test for the existence of the PHP Native Sessions plugin
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/
Recommendation: You should ensure that the Native PHP Sessions plugin is installed and activated - https://wordpress.org/plugins/wp-native-php-sessions/
"""

Scenario: A WordPress install with the native sessions plugin installed and active
Expand Down
2 changes: 1 addition & 1 deletion php/pantheon/checks/sessions.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function init() {
$this->has_plugin = class_exists("Pantheon_Sessions");
// If the plugin was not found, define the recommended action.
// Otherwise, we don't want to recommend anything, we're all good here.
$this->action = ! $this->has_plugin ? 'You should install the Native PHP Sessions plugin - https://wordpress.org/plugins/wp-native-php-sessions/' : 'No action required';
$this->action = ! $this->has_plugin ? 'You should ensure that the Native PHP Sessions plugin is installed and activated - https://wordpress.org/plugins/wp-native-php-sessions/' : 'No action required';

return $this;
}
Expand Down

0 comments on commit 0e0cf07

Please sign in to comment.