summaryrefslogtreecommitdiffstatshomepage
path: root/tests/phpunit/includes/testcase-xmlrpc.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/testcase-xmlrpc.php')
-rw-r--r--tests/phpunit/includes/testcase-xmlrpc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/includes/testcase-xmlrpc.php b/tests/phpunit/includes/testcase-xmlrpc.php
index 6f69569a80..5fefb51422 100644
--- a/tests/phpunit/includes/testcase-xmlrpc.php
+++ b/tests/phpunit/includes/testcase-xmlrpc.php
@@ -22,7 +22,7 @@ class WP_XMLRPC_UnitTestCase extends WP_UnitTestCase {
}
protected function make_user_by_role( $role ) {
- return self::$factory->user->create( array(
+ return self::factory()->user->create( array(
'user_login' => $role,
'user_pass' => $role,
'role' => $role