Skip to content
This repository has been archived by the owner on Aug 20, 2019. It is now read-only.

Commit

Permalink
Upgrade to WordHat 3 (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
ataylorme authored Oct 2, 2018
1 parent 853e2de commit ef4b7c7
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 252 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ web/wp-content/mu-plugins/*
!web/wp-content/mu-plugins/alter-wpcfm-config-path.php
!web/wp-content/plugins/
web/wp-content/plugins/*
!web/wp-content/plugins/lh-hsts
!web/wp-content/themes
web/wp-content/themes/*
!web/wp-content/themes/twentyseventeen-child/
Expand Down
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,18 @@
"roots/wp-password-bcrypt": "^1.0.0",
"rvtraveller/qs-composer-installer": "^1.1",
"vlucas/phpdotenv": "2.*",
"wpackagist-plugin/lh-hsts": "^1.24",
"wpackagist-plugin/pantheon-advanced-page-cache": "*",
"wpackagist-plugin/wp-native-php-sessions": "0.*",
"wpackagist-plugin/wordpress-importer": "0.*",
"wpackagist-theme/twentyseventeen": "1.*"
},
"require-dev": {
"behat/mink-goutte-driver": "^1.2",
"behat/mink-selenium2-driver": "^1.3",
"brain/monkey": "~2.2.0",
"dealerdirect/phpcodesniffer-composer-installer": "~0.4.4",
"pantheon-systems/quicksilver-pushback": "~1",
"paulgibbs/behat-wordpress-extension": "~0.9.2",
"paulgibbs/behat-wordpress-extension": "3.*",
"phpunit/phpunit": "~6.5.4",
"roave/security-advisories": "dev-master",
"squizlabs/php_codesniffer": "3.2.2",
Expand Down
81 changes: 43 additions & 38 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion tests/behat/behat-lando.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ default:
PaulGibbs\WordpressBehatExtension:
site_url: https://nginx/wp
users:
admin:
-
roles:
- administrator
username: admin
password: admin
wpcli:
Expand Down
10 changes: 6 additions & 4 deletions tests/behat/features/admin-login.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ Feature: Login as an administrator (no-js)
I want basic login behavior to work
So that I can administer the site

Background:
Given I am logged in as an administrator
Given I am on the dashboard

Scenario: Confirm access to create users
Given I am logged in as an admin
When I am on the dashboard
And I go to menu item "Users > Add New"
Then I should see "Add New User"
Given I go to the menu "Users > Add New"
Then I should see "Add New User"
8 changes: 4 additions & 4 deletions tests/behat/features/blogname.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ Feature: Change blogname and blogdescription (no-js)
So that I have control over my site

Background:
Given I am logged in as an admin
Given I am logged in as an administrator
Given I am on the dashboard


Scenario: Saving blogname
Given I go to menu item "Settings > General"
Given I go to the menu "Settings > General"
When I fill in "blogname" with "Awesome WordHat Test Site"
And I press "submit"
And I should see "Settings saved."
And I am on the homepage
Then I should see "Awesome WordHat Test Site" in the "h1 a" element

Scenario: Saving blogdescription
Given I go to menu item "Settings > General"
Given I go to the menu "Settings > General"
When I fill in "blogdescription" with "GitHub + Composer + CircleCi + Pantheon = Win!"
And I press "submit"
And I should see "Settings saved."
And I am on the homepage
Then I should see "GitHub + Composer + CircleCi + Pantheon = Win!" in the ".site-description" element
Then I should see "GitHub + Composer + CircleCi + Pantheon = Win!" in the ".site-description" element
113 changes: 0 additions & 113 deletions web/wp-content/plugins/lh-hsts/lh-hsts.php

This file was deleted.

Loading

0 comments on commit ef4b7c7

Please sign in to comment.