woocommerce/tests/framework/class-wc-unit-test-factory.php

29 lines
555 B
PHP
Raw Normal View History

2014-09-05 18:34:51 +00:00
<?php
/**
* WC Unit Test Factory
*
* Provides WooCommerce-specific factories
*
* @since 2.2
*/
class WC_Unit_Test_Factory extends WP_UnitTest_Factory {
/** @var \WC_Unit_Test_Factory_For_Webhook */
public $webhook;
/** @var \WC_Unit_Test_Factory_For_Webhook_Delivery */
public $webhook_delivery;
/**
* Setup factories
*/
public function __construct() {
parent::__construct();
$this->webhook = new WC_Unit_Test_Factory_For_Webhook( $this );
$this->webhook_delivery = new WC_Unit_Test_Factory_For_Webhook_Delivery( $this );
}
}