Changeset 42343 for trunk/tests/phpunit/includes/testcase-xmlrpc.php
- Timestamp:
- 11/30/2017 11:09:33 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase-xmlrpc.php
r38470 r42343 1 1 <?php 2 include_once( ABSPATH . 'wp-admin/includes/admin.php');3 include_once( ABSPATH . WPINC . '/class-IXR.php');4 include_once( ABSPATH . WPINC . '/class-wp-xmlrpc-server.php');2 include_once( ABSPATH . 'wp-admin/includes/admin.php' ); 3 include_once( ABSPATH . WPINC . '/class-IXR.php' ); 4 include_once( ABSPATH . WPINC . '/class-wp-xmlrpc-server.php' ); 5 5 6 6 class WP_XMLRPC_UnitTestCase extends WP_UnitTestCase { … … 24 24 25 25 protected function make_user_by_role( $role ) { 26 return self::factory()->user->create( array( 27 'user_login' => $role, 28 'user_pass' => $role, 29 'role' => $role 30 )); 26 return self::factory()->user->create( 27 array( 28 'user_login' => $role, 29 'user_pass' => $role, 30 'role' => $role, 31 ) 32 ); 31 33 } 32 34
Note: See TracChangeset
for help on using the changeset viewer.