Esempio n. 1
0
 /**
  * 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();
 }
Esempio n. 2
0
 /**
  * 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'));
 }
Esempio n. 3
0
 /**
  * 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'));
 }
Esempio n. 4
0
 /**
  * Setup our test server, endpoints, and user info.
  */
 public function setUp()
 {
     parent::setUp();
     $this->endpoint = new WC_REST_Customers_Controller();
 }