Skip to content
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

Merged
merged 1 commit into from
Jan 25, 2025

Conversation

upskaling
Copy link
Contributor

Closes #1563

@@ -2,6 +2,7 @@

use Behat\Behat\Context\Context;
use Behat\Behat\Hook\Scope\BeforeScenarioScope;
use Behat\Behat\Tester\Exception\PendingException;
Copy link
Contributor

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(
Copy link
Contributor

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 :

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) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (count($foundEmails) != 1) {
if (count($foundEmails) !== 1) {

/**
* @When I request a password reset for :arg1
*/
public function iRequestAPasswordReset($arg1)
Copy link
Contributor

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 ?

@upskaling
Copy link
Contributor Author

merci beaucoup pour le retour @stakovicz
si il y a autre chose n'hésitez pas

@stakovicz stakovicz merged commit 764cb73 into afup:master Jan 25, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Corriger l'URL présente dans le mail de reset de mot de passe
2 participants