diff --git a/tests/test-wporg-two-factor.php b/tests/test-wporg-two-factor.php index 819d95bc..a039288c 100644 --- a/tests/test-wporg-two-factor.php +++ b/tests/test-wporg-two-factor.php @@ -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 ) );