woocommerce/plugins/woocommerce-admin/tests
Jason Conroy d237256aa9 Abstract onboarding plugin code into a PluginsHelper class (https://github.com/woocommerce/woocommerce-admin/pull/3999)
* Abstract WP plugin code into a PluginsHelper class

We plan to use these methods in the Marketing tab.

* Add PluginsHelper::is_plugin_active()

* Add PluginsHelper::is_plugin_installed()

* Add PluginsHelper::get_plugin_data()

* Add PluginsHelper::get_plugin_path_from_slug()

* Refactor PluginsHelper::get_plugin_data method

Using the new get_plugin_path_from_slug method

* Refactor is_plugin_installed and is_plugin_active

Also adds support for plugin slugs or paths as parameters.

* Ensure get_plugins() function is available for PluginsHelper

* Ensure plugin path is a string before checking if installed/active

* PHPCS fixes

* Add initial unit tests for PluginsHelper

* Check plugin data array keys rather than all values

Will make it less fragile when Woo plugin data changes

* Fix typos

Co-authored-by: Daniel Bitzer <danielbitzer@gmail.com>
2020-03-27 11:28:59 +10:30
..
api Fix failing tests after WC 4.0 merge (https://github.com/woocommerce/woocommerce-admin/pull/3870) 2020-03-12 14:46:13 +01:00
framework/helpers remove replace_actionscheduler_store_class function (https://github.com/woocommerce/woocommerce-admin/pull/3936) 2020-03-19 10:34:09 -06:00
js Align WooCommerce javascript code standards/linting/styles with WordPress core. (https://github.com/woocommerce/woocommerce-admin/pull/3674) 2020-02-14 15:23:21 +13:00
notes Made the data store reading of content_data more resilient (https://github.com/woocommerce/woocommerce-admin/pull/3926) (https://github.com/woocommerce/woocommerce-admin/pull/3961) 2020-03-24 13:10:33 +13:00
reports Allow report caching layer to be filtered off. (https://github.com/woocommerce/woocommerce-admin/pull/3434) 2019-12-17 16:21:44 -05:00
api-init.php Reports sync refactor (https://github.com/woocommerce/woocommerce-admin/pull/3285) 2020-01-03 00:00:37 +08:00
batch-queue.php Fix failing tests after WC 4.0 merge (https://github.com/woocommerce/woocommerce-admin/pull/3870) 2020-03-12 14:46:13 +01:00
bootstrap.php Onboarding: Remove old development flags (https://github.com/woocommerce/woocommerce-admin/pull/3809) 2020-03-04 09:46:02 +01:00
plugin-version.php Add test to catch missing version updates. 2019-06-13 15:40:02 -06:00
plugins-helper.php Abstract onboarding plugin code into a PluginsHelper class (https://github.com/woocommerce/woocommerce-admin/pull/3999) 2020-03-27 11:28:59 +10:30
test-sample.php Fix linting errors in tests/test-sample.php 2018-10-23 09:57:45 -04:00