Skip to content

Commit

Permalink
Fix broken test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dd32 authored Jul 18, 2024
1 parent 72f9137 commit 6818bef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test-wporg-two-factor.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public function test_redirected_when_2fa_needed() {
$super_admins[] = self::$privileged_user->user_login;

wp_set_current_user( self::$privileged_user->ID, self::$privileged_user->user_login );
$expected = 'https://profiles.wordpress.org/me/profile/edit/group/3';
$expected = 'https://profiles.wordpress.org/' . self::$privileged_user->user_nicename . '/profile/edit/group/3';
$actual = apply_filters( 'login_redirect', admin_url(), admin_url(), self::$privileged_user );

$this->assertTrue( user_requires_2fa( self::$privileged_user ) );
Expand Down

0 comments on commit 6818bef

Please sign in to comment.