diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 99df796..7577a06 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -2,8 +2,7 @@ name: Behat tests on: pull_request: branches: - - master - - main + - '**' jobs: validate: diff --git a/features/theme.feature b/features/theme.feature index 29b6444..92e0fd9 100644 --- a/features/theme.feature +++ b/features/theme.feature @@ -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`