Skip to content

Running Unit Tests on Local By Flywheel

George Gecewicz edited this page Jun 16, 2019 · 4 revisions

You don't have to use Local by Flywheel for your local dev site or to run tests, but it makes things easy. This documentation shows how to run unit tests for Constant Contact Forms when on a Local by Flywheel site.

The general process is as follows, with each step elaborated upon below:

  1. Install PHPUnit
  2. Backup the Local site's database
  3. Initialize the testing environment
  4. Run the tests

Installing PHPUnit

Initializing the Testing Environment

Running the Tests

  • From the root directory of the plugin,
  • Run the following command:
./vendor/bin/phpunit