diff --git a/src/EmailTrait.php b/src/EmailTrait.php index 71020d5..4a5db3e 100644 --- a/src/EmailTrait.php +++ b/src/EmailTrait.php @@ -43,7 +43,7 @@ public function emailBeforeScenarioEnableTestEmailSystem(BeforeScenarioScope $sc return; } - if ($scope->getScenario()->hasTag('email')) { + if (!$scope->getScenario()->hasTag('email')) { return; } diff --git a/tests/behat/features/email.feature b/tests/behat/features/email.feature index 6330d53..d7f4600 100644 --- a/tests/behat/features/email.feature +++ b/tests/behat/features/email.feature @@ -90,7 +90,7 @@ Feature: Check that email assertions work for or D9 Line four of the test email content """ - @api + @api @email Scenario: As a developer, I want to know that test email system queue clearing step is working. Given I send test email to "test@example.com" with