PHPackages                             level-level/wp-browser-woocommerce - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. level-level/wp-browser-woocommerce

ActiveLibrary[Testing &amp; Quality](/categories/testing)

level-level/wp-browser-woocommerce
==================================

WooCommerce object factories for WP Browser integration tests.

0.2.0(1y ago)1416.2k2[1 issues](https://github.com/level-level/wp-browser-woocommerce/issues)MITPHP

Since Jun 15Pushed 1y ago8 watchersCompare

[ Source](https://github.com/level-level/wp-browser-woocommerce)[ Packagist](https://packagist.org/packages/level-level/wp-browser-woocommerce)[ RSS](/packages/level-level-wp-browser-woocommerce/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (19)Used By (0)

wp-browser-woocommerce
======================

[](#wp-browser-woocommerce)

This library simplifies testing of WooCommerce themes and plugins with [wp-browser](https://github.com/lucatume/wp-browser). Several [Unit Test Factories](https://make.wordpress.org/core/handbook/testing/automated-testing/writing-phpunit-tests/#fixtures-and-factories) are added that allow you to quickly create WooCommerce products and orders within an integration test.

Getting started
---------------

[](#getting-started)

Before getting started with `wp-browser-woocommerce`, make sure you read the excellent [documentation for wp-browser](https://wpbrowser.wptestkit.dev/) first.

### Installation

[](#installation)

To install `wp-browser-woocommerce` you use [composer](https://getcomposer.org/). The library is published on [packagist](https://packagist.org/packages/level-level/wp-browser-woocommerce).

```
composer require --dev level-level/wp-browser-woocommerce
```

### Your first WooCommerce test

[](#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.

```
