mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-12 16:44:34 +00:00
Coding Standards: Fix WPCS violations after [45708].
See #45747. git-svn-id: https://develop.svn.wordpress.org/trunk@45709 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -34,7 +34,13 @@ class Tests_User_WpAuthenticateSpamCheck extends WP_UnitTestCase {
|
||||
*/
|
||||
function test_wp_authenticate_spam_check_returns_wp_error_when_flagged() {
|
||||
$user_id = self::factory()->user->create( array( 'role' => 'contributor' ) );
|
||||
wp_update_user( array( 'ID' => $user_id, 'spam' => '1' ) );
|
||||
wp_update_user(
|
||||
array(
|
||||
'ID' => $user_id,
|
||||
'spam' => '1',
|
||||
)
|
||||
);
|
||||
|
||||
$user = new WP_User( $user_id );
|
||||
$actual_user = wp_authenticate_spam_check( $user );
|
||||
wpmu_delete_user( $user_id );
|
||||
|
||||
Reference in New Issue
Block a user