@@ -27,7 +27,7 @@ public function isValid($email, ?EmailValidation $email_validation = NULL) {
if($email_validation){
thrownew\BadMethodCallException('Calling \Drupal\Component\Utility\EmailValidator::isValid() with the second argument is not supported. See https://www.drupal.org/node/2997196');
$this->expectExceptionMessage('Calling \Drupal\Component\Utility\EmailValidator::isValid() with the second argument is not supported. See https://www.drupal.org/node/2997196');