From 27e1482b63835184528a7cb5a6a75feb37a6cdc0 Mon Sep 17 00:00:00 2001 From: Andy Fowlston Date: Sun, 14 Nov 2021 12:53:42 +0000 Subject: [PATCH] Avoid whitespace in tags #600 Since Gherkin 4.9.0 tags with whitespace are deprecated: use a comma as an explicit OR operator. See - https://github.com/Behat/Gherkin/issues/213 - https://github.com/Behat/Gherkin/pull/215 - https://behat.org/en/latest/user_guide/context/hooks.html#tagged-hooks Closes #600 --- src/Drupal/DrupalExtension/Context/MailContext.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Drupal/DrupalExtension/Context/MailContext.php b/src/Drupal/DrupalExtension/Context/MailContext.php index da608631..4be77f1d 100644 --- a/src/Drupal/DrupalExtension/Context/MailContext.php +++ b/src/Drupal/DrupalExtension/Context/MailContext.php @@ -44,7 +44,7 @@ public function enableMail($event) * Allow opting in to mail collection. When using the default mail manager * service, it is not necessary to use this tag. * - * @BeforeScenario @mail @email + * @BeforeScenario @mail,@email */ public function collectMail() { @@ -54,7 +54,7 @@ public function collectMail() /** * Stop collecting mail at scenario end. * - * @AfterScenario @mail @email + * @AfterScenario @mail,@email */ public function stopCollectingMail() { @@ -143,7 +143,7 @@ public function noNewMailIsSent($count, $to = '', $subject = '') $count = $count === 'an' ? 1 : $count; $this->assertMailCount($actualMail, $count); } - + /** * @When I follow the link to :urlFragment from the (e)mail * @When I follow the link to :urlFragment from the (e)mail to :to