-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: correction de URL dans le email de réinitialisation de mot de passe #1599
Conversation
@@ -2,6 +2,7 @@ | |||
|
|||
use Behat\Behat\Context\Context; | |||
use Behat\Behat\Hook\Scope\BeforeScenarioScope; | |||
use Behat\Behat\Tester\Exception\PendingException; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merci pour cette PR !
Je pense que ceci n'est pas utilisé.
} | ||
|
||
if (count($foundEmails) != 1) { | ||
throw new \Exception( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Peut-être throw une exception du type ExpectationException
?
Il y a un exemple ici :
web/tests/behat/bootstrap/FeatureContext.php
Lines 161 to 168 in 07b4702
throw new ExpectationException( | |
sprintf( | |
'The select has the following values %s (expected %s)', | |
json_encode($foundValues, JSON_UNESCAPED_UNICODE), | |
$expectedValuesJson | |
), | |
$this->minkContext->getSession()->getDriver() | |
); |
]; | ||
} | ||
|
||
if (count($foundEmails) != 1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (count($foundEmails) != 1) { | |
if (count($foundEmails) !== 1) { |
/** | ||
* @When I request a password reset for :arg1 | ||
*/ | ||
public function iRequestAPasswordReset($arg1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Peut être typehinter les paramètres et retours de fonctions ?
fe6e106
to
788b379
Compare
merci beaucoup pour le retour @stakovicz |
Closes #1563