PMC Unit Test
Introduction
This plugin is written to help integrate unit test for all PMC Plugins & Themes. There are plugins and code that are available on VIP Classic & VIP Go platform but not on our development environment. We need to add custom code to disable those plugins and adjust code to prevent errors during development and unit testing. By using a centralize custom PMC unit test bootstrap and helper functions, we can share common codes and be able to apply fixes across projects easily.
In order to properly support all projects, we must follow some basic guideline for adding unit test and data mocking mechanism; This way, when there are update, we can do release across all project easily. If we ever have to improve our existing unit test framework or data mocker, we can apply the update more easily.
Development
Update the vendor library
cd pmc-plugins/pmc-unit-test
git clone [email protected]:penske-media-corp/pmc-unit-test.git package
rm -rf vendor
composer update
git add -f vendor