A basic WordPress plugin to demonstrate unit testing with PHPUnit in WordPress for an accompanying article
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests
.gitattributes
.gitignore
.travis.yml
README.md
phpcs.ruleset.xml
phpunit-demo-plugin.php
phpunit.xml.dist

README.md

PHPUnit Demo Plugin

License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html

Description

A Basic WordPress Plugin for an accompanying article about unit testing in WordPress with PHPUnit

Installation Manually

  1. Download the latest archive and extract to a folder
  2. Upload the plugin to the /wp-content/plugins/ directory
  3. Activate the plugin through the 'Plugins' menu in WordPress

Usage

  1. Adds a meta key preferred_browser when a new user with an editor role is created
  2. The usermeta is visible in the user's profile

Note