Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.8.1
-
MOODLE_38_STABLE
-
MOODLE_37_STABLE, MOODLE_38_STABLE
-
MDL-68048-master-behatnotfound -
Description
I just noticed an error message as a result of the thrown ElementNotFoundException that reads like "Page administration menu is not found not found." (note the duplicate "not found").
This is because we throw the exception via a call like
$exception = new ElementNotFoundException($this->getSession(), 'Page administration menu is not found'); |
but then then Behat\Mink\Exception\ElementNotFoundException::__construct() adds its own parts to the message, including:
$message .= ' not found.'; |
When throwing the ElementNotFoundException exception, the type parameter should only mention the element type, not be the full sentence.