Skip to content

Commit 9cd596a

Browse files
Fix linting errors and warnings
1 parent 628ff31 commit 9cd596a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

tests/phpunit/tests/rest-api/rest-users-controller.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,7 +1390,7 @@ public function test_create_user_sends_admin_notification() {
13901390
$response = rest_get_server()->dispatch( $request );
13911391

13921392
$this->assertSame( 201, $response->get_status() );
1393-
1393+
13941394
$mailer = tests_retrieve_phpmailer_instance();
13951395
$this->assertNotEmpty( $mailer->mock_sent, 'No emails were sent' );
13961396
$this->assertSame( get_option( 'admin_email' ), $mailer->mock_sent[0]['to'][0][0] );
@@ -1401,14 +1401,17 @@ public function test_create_user_sends_admin_notification() {
14011401
*/
14021402
public function test_create_user_notification_respects_filter() {
14031403
wp_set_current_user( self::$user );
1404-
add_filter( 'rest_wp_user_created_notification', function() {
1405-
return 'both';
1406-
});
1404+
add_filter(
1405+
'rest_wp_user_created_notification',
1406+
function () {
1407+
return 'both';
1408+
}
1409+
);
14071410

14081411
reset_phpmailer_instance();
14091412

14101413
$user_email = '[email protected]';
1411-
$request = new WP_REST_Request( 'POST', '/wp/v2/users' );
1414+
$request = new WP_REST_Request( 'POST', '/wp/v2/users' );
14121415
$request->set_param( 'username', 'testuser2' );
14131416
$request->set_param( 'email', $user_email );
14141417
$request->set_param( 'password', 'testpassword2' );

0 commit comments

Comments
 (0)