test: use stub method set_up() in unit tests
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8c9f98e80b
commit
1f32adbd72
@ -24,8 +24,8 @@ class Test_API extends WP_UnitTestCase {
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp(): void {
|
public function set_up() {
|
||||||
parent::setUp();
|
parent::set_up();
|
||||||
global $wp_rest_server;
|
global $wp_rest_server;
|
||||||
$wp_rest_server = new WP_REST_Server();
|
$wp_rest_server = new WP_REST_Server();
|
||||||
do_action( 'rest_api_init' );
|
do_action( 'rest_api_init' );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user