Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 879 Bytes

CONTRIBUTING.md

File metadata and controls

37 lines (23 loc) · 879 Bytes

This guide is meant for developers wanting to work on the plugin code.

Setup

Make a fork and clone it:

git clone --recursive [email protected]:{YOUR GITHUB USERNAME}/wp-posts-to-posts.git posts-to-posts

You can now work on the PHP and CSS files. Please follow the WordPress Coding Standards.

Unit Tests

If you want to add a new feature, please consider adding a new test for it as well.

The following instructions assume a UNIX-like environment (OS X, Linux, etc.).

Step 1: Install and configure the official WordPress testing suite:

./bin/install-wp-tests

Note that all data in the test DB will be deleted once you run the tests.

Step 2: Install PHPUnit via Composer:

php composer.phar install

Step 3: Run the tests:

phpunit