WooCommerce Order Source Attribution helps merchants understand which marketing activities, channels or campaigns are leading to orders in their stores.
Thanks, @JPry. I am going to merge this and make a new PR suggesting some tests for Automattic\WooCommerce\OrderSourceAttribution\Integration\WPConsentAPI
Changes proposed in this Pull Request:
Add PHP Unit as a dependency and set up bootstrap.
Closes #18.
Checks:
Detailed test instructions:
The PHPUnit implementation is based on how GLA and Pinterest for WooCommerce tests are setup.
From the plugin directory, checkout
add/18-phpunit
and then run:composer install
bin/install-unit-tests.sh <db-name> <db-user> <db-pass> [db-host] latest latest
vendor/bin/phpunit