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

28 lines
554 B
PHP
Raw Normal View History

2014-09-05 18:34:51 +00:00
<?php
/**
2015-11-03 13:53:50 +00:00
* WC Unit Test Factory
2014-09-05 18:34:51 +00:00
*
2015-11-03 13:31:20 +00:00
* Provides WooCommerce-specific factories.
2014-09-05 18:34:51 +00:00
*
* @since 2.2
*/
class WC_Unit_Test_Factory extends WP_UnitTest_Factory {
/** @var WC_Unit_Test_Factory_For_Webhook */
2014-09-05 18:34:51 +00:00
public $webhook;
/** @var WC_Unit_Test_Factory_For_Webhook_Delivery */
2014-09-05 18:34:51 +00:00
public $webhook_delivery;
/**
2015-11-03 13:31:20 +00:00
* Setup factories.
2014-09-05 18:34:51 +00:00
*/
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 );
}
}