{"repo":"level-level/wp-browser-woocommerce","free":true,"listed":false,"github":"https://github.com/level-level/wp-browser-woocommerce","clone":"git clone https://github.com/level-level/wp-browser-woocommerce.git","description":"Adds factory functions for WooCommerce to be used with wp-browser integration tests.","language":"PHP","stars":14,"topics":["woocommerce","wp-browser","testing","codeception","integration-testing"],"license":"MIT","category":"ecommerce","readme_excerpt":"wp-browser-woocommerce This library simplifies testing of WooCommerce themes and plugins with wp-browser. Several Unit Test Factories are added that allow you to quickly create WooCommerce products and orders within an integration test. Getting started Before getting started with wp-browser-woocommerce , make sure you read the excellent documentation for wp-browser first. Installation To install wp-browser-woocommerce you use composer. The library is published on packagist. Your first WooCommerce test Tests written with wp-browser-woocommerce are a lot like regular wp-browser integration tests. By extending from \\LevelLevel\\WPBrowserWooCommerce\\WCTestCase instead of the regular \\WPTestCase , you will get access to WooCommerce unit test factories. Factories The factories provide methods to allow for quick object creation. The factories are access with the $this- factory() method on a testcase. In the background, the factories use the WooCommerce REST API methods to create and retrieve objects. These are not actual GET / POST requests, but rather internal calls to the methods that would process the regular requests to the API. All factories extend from the WordPress default WP UnitTest Factory For Thing. All methods that are specified on this base class are available on the factories you will use in WooCommerce tests. In this documentation you will only find the most used ones, refer to the base class or WordPress documentation for others. Orders You can access the order factor","default_branch":null,"files":null,"tree":[],"storefront":"/r/level-level","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/level-level/wp-browser-woocommerce/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}