code standards

This commit is contained in:
Mike Jolley 2018-06-13 16:55:39 +01:00
parent 31058ac215
commit 77e887efe9
1 changed files with 19 additions and 18 deletions

View File

@ -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;
}
}