Skip to content

Commit

Permalink
Avoid whitespace in tags jhedstrom#600
Browse files Browse the repository at this point in the history
Since Gherkin 4.9.0 tags with whitespace are deprecated: use a comma as
an explicit OR operator.

See
- Behat/Gherkin#213
- Behat/Gherkin#215
- https://behat.org/en/latest/user_guide/context/hooks.html#tagged-hooks

Closes jhedstrom#600
  • Loading branch information
andriokha authored and xurizaemon committed Nov 28, 2022
1 parent 0187c80 commit e4f5a0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Drupal/DrupalExtension/Context/MailContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand All @@ -54,7 +54,7 @@ public function collectMail()
/**
* Stop collecting mail at scenario end.
*
* @AfterScenario @mail @email
* @AfterScenario @mail,@email
*/
public function stopCollectingMail()
{
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e4f5a0a

Please sign in to comment.