/** * Setup our test server, endpoints, and user info. */ public function setUp() { parent::setUp(); $this->endpoint = new WC_REST_Shipping_Zones_Controller(); $this->user = $this->factory->user->create(array('role' => 'administrator')); $this->zones = array(); }
/** * Setup our test server, endpoints, and user info. */ public function setUp() { parent::setUp(); $this->endpoint = new WC_Rest_Settings_Options_Controller(); WC_Helper_Settings::register(); $this->user = $this->factory->user->create(array('role' => 'administrator')); }
/** * Setup our test server. */ public function setUp() { parent::setUp(); $this->endpoint = new WC_REST_System_Status_Controller(); $this->user = $this->factory->user->create(array('role' => 'administrator')); }
/** * Setup our test server, endpoints, and user info. */ public function setUp() { parent::setUp(); $this->endpoint = new WC_REST_Customers_Controller(); }