File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -1568,19 +1568,16 @@ public function test_can_filter_registered_providers_for_user() {
1568
1568
add_filter (
1569
1569
'two_factor_providers_for_user ' ,
1570
1570
function ( $ providers , $ user ) {
1571
- $ this ->assertInstanceOf ( WP_User::class, $ user );
1571
+ $ this ->assertInstanceOf ( WP_User::class, $ user, ' A user referenced is passed to the filter ' );
1572
1572
1573
1573
return array_diff_key ( $ providers , array ( 'Two_Factor_Email ' => null ) );
1574
1574
},
1575
1575
10 ,
1576
1576
2
1577
1577
);
1578
1578
1579
- $ providers = Two_Factor_Core::get_providers ();
1580
- unset( $ providers ['Two_Factor_Email ' ] );
1581
-
1582
- $ this ->assertEquals (
1583
- $ providers ,
1579
+ $ this ->assertNotContains (
1580
+ 'Two_Factor_Email ' ,
1584
1581
Two_Factor_Core::get_supported_providers_for_user ( $ user ),
1585
1582
'Email provider can be disabled for a user '
1586
1583
);
You can’t perform that action at this time.
0 commit comments