Skip to content

Commit

Permalink
Merge pull request #126 from pantheon-systems/fix-behat-errors
Browse files Browse the repository at this point in the history
[CMS-320] Fix behat errors
  • Loading branch information
jazzsequence authored Aug 3, 2022
2 parents ccd1129 + 7df8cd8 commit 12a8d6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Behat tests
on:
pull_request:
branches:
- master
- main
- '**'

jobs:
validate:
Expand Down
7 changes: 4 additions & 3 deletions features/theme.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,21 @@ Feature: Test WordPress for themes with known security issues
Scenario: A WordPress install with a theme with a known security issue
Given a WP install
And I run `wp theme install twentyfifteen --version=1.1 --force`
And I run `wp theme update twentyfifteen --dry-run`
And I run `wp theme update twentyfifteen --dry-run`

When I run `wp launchcheck all --all`
Then STDOUT should contain:
"""
Found 0 themes needing updates and 1 known vulnerabilities
Found 1 themes needing updates and 0 known vulnerabilities
"""
And STDOUT should contain:
"""
Recommendation: Update themes to fix vulnerabilities
Recommendation: You should update all out-of-date themes
"""

Scenario: A WordPress install with no theme security issues
Given a WP install
And I run `wp theme install twentyfifteen --version=1.1 --force`
And I run `wp theme update twentyfifteen`

When I run `wp launchcheck all --all`
Expand Down

0 comments on commit 12a8d6a

Please sign in to comment.