Skip to content

Commit

Permalink
Fixed the condition on the email trait.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Oct 17, 2024
1 parent c6f4e7c commit c46769b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/EmailTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function emailBeforeScenarioEnableTestEmailSystem(BeforeScenarioScope $sc
return;
}

if ($scope->getScenario()->hasTag('email')) {
if (!$scope->getScenario()->hasTag('email')) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/behat/features/email.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]" with
Expand Down

0 comments on commit c46769b

Please sign in to comment.