4225e71a6b
This fixes the paths in `wp-vendor/` that were including `src`. I want to drop this in so we can find out what else will break. See #36335. git-svn-id: https://develop.svn.wordpress.org/trunk@38411 602fd350-edb4-49c9-b593-d223f7449a82
31 lines
636 B
PHP
31 lines
636 B
PHP
<?php
|
|
include_once( ABSPATH . 'wp-admin/includes/admin.php' );
|
|
|
|
class WP_XMLRPC_UnitTestCase extends WP_UnitTestCase {
|
|
protected $myxmlrpcserver;
|
|
|
|
function setUp() {
|
|
parent::setUp();
|
|
|
|
add_filter( 'pre_option_enable_xmlrpc', '__return_true' );
|
|
|
|
$this->myxmlrpcserver = new wp_xmlrpc_server();
|
|
}
|
|
|
|
function tearDown() {
|
|
remove_filter( 'pre_option_enable_xmlrpc', '__return_true' );
|
|
|
|
$this->remove_added_uploads();
|
|
|
|
parent::tearDown();
|
|
}
|
|
|
|
protected function make_user_by_role( $role ) {
|
|
return self::factory()->user->create( array(
|
|
'user_login' => $role,
|
|
'user_pass' => $role,
|
|
'role' => $role
|
|
));
|
|
}
|
|
|
|
} |