Skip to content

Commit b39cf6c

Browse files
andrea-sdlCopilot
andauthored
Update tests/phpunit/test-forced-mfa-users.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 2b1549c commit b39cf6c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/phpunit/test-forced-mfa-users.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public function setUp(): void {
1212

1313
public function tearDown(): void {
1414
// Remove actions/filters added by the class
15-
// Clean up any actions added by the class
15+
remove_action( 'set_current_user', [ Forced_MFA_Users::class, 'maybe_enforce_two_factor' ] );
1616

1717
// Reset the static capability property using reflection
1818
if ( class_exists( Forced_MFA_Users::class ) ) {

0 commit comments

Comments
 (0)