Tests: Do not include the delimiter parameter in ucwords()
calls.
This parameter is not supported in PHP < 5.4. Introduced in [44641]. See #44672. git-svn-id: https://develop.svn.wordpress.org/trunk@44642 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
83cfc77500
commit
3e390cdf9b
@ -1501,7 +1501,7 @@ class WP_Test_REST_Users_Controller extends WP_Test_REST_Controller_Testcase {
|
||||
|
||||
$user = get_userdata( self::$editor );
|
||||
|
||||
$updated_email_with_case_change = ucwords( $user->user_email, '@' );
|
||||
$updated_email_with_case_change = ucwords( $user->user_email );
|
||||
|
||||
$request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/users/%d', self::$editor ) );
|
||||
$request->set_param( 'email', $updated_email_with_case_change );
|
||||
@ -1521,7 +1521,7 @@ class WP_Test_REST_Users_Controller extends WP_Test_REST_Controller_Testcase {
|
||||
$user = get_userdata( self::$editor );
|
||||
$subscriber = get_userdata( self::$subscriber );
|
||||
|
||||
$updated_email_with_case_change = ucwords( $subscriber->user_email, '@' );
|
||||
$updated_email_with_case_change = ucwords( $subscriber->user_email );
|
||||
|
||||
$request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/users/%d', self::$editor ) );
|
||||
$request->set_param( 'email', $updated_email_with_case_change );
|
||||
|
Loading…
Reference in New Issue
Block a user