diff --git a/tests/TestCase/Controller/Traits/PasswordManagementTraitTest.php b/tests/TestCase/Controller/Traits/PasswordManagementTraitTest.php index 8384ad9a..dcbd7d1b 100644 --- a/tests/TestCase/Controller/Traits/PasswordManagementTraitTest.php +++ b/tests/TestCase/Controller/Traits/PasswordManagementTraitTest.php @@ -415,7 +415,7 @@ public function testRequestPasswordEmptyReference() */ public function testEnsureUserActiveForResetPasswordFeature($ensureActive) { - $expectError = $this->never(); + $expectError = $this->any(); if ($ensureActive) { Configure::write('Users.Registration.ensureActive', true);