code standards
This commit is contained in:
parent
31058ac215
commit
77e887efe9
|
@ -7,27 +7,28 @@
|
|||
* @since 3.0
|
||||
*/
|
||||
|
||||
class WC_REST_Unit_Test_Case extends WC_Unit_Test_Case {
|
||||
class WC_REST_Unit_Test_Case extends WC_Unit_Test_Case {
|
||||
|
||||
protected $server;
|
||||
protected $server;
|
||||
|
||||
/**
|
||||
* Setup our test server.
|
||||
*/
|
||||
public function setUp() {
|
||||
parent::setUp();
|
||||
global $wp_rest_server;
|
||||
$this->server = $wp_rest_server = new WP_Test_Spy_REST_Server;
|
||||
do_action( 'rest_api_init' );
|
||||
}
|
||||
/**
|
||||
* Setup our test server.
|
||||
*/
|
||||
public function setUp() {
|
||||
parent::setUp();
|
||||
global $wp_rest_server;
|
||||
$wp_rest_server = new WP_Test_Spy_REST_Server();
|
||||
$this->server = $wp_rest_server;
|
||||
do_action( 'rest_api_init' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Unset the server.
|
||||
*/
|
||||
public function tearDown() {
|
||||
parent::tearDown();
|
||||
/**
|
||||
* Unset the server.
|
||||
*/
|
||||
public function tearDown() {
|
||||
parent::tearDown();
|
||||
global $wp_rest_server;
|
||||
unset( $this->server );
|
||||
$wp_rest_server = null;
|
||||
}
|
||||
$wp_rest_server = null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue