Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset collected emails #11

Merged
merged 2 commits into from
Oct 5, 2021
Merged

Reset collected emails #11

merged 2 commits into from
Oct 5, 2021

Conversation

kbond
Copy link
Member

@kbond kbond commented Oct 5, 2021

Adds TestMailer::reset():

// send emails

$this->mailer()
    ->assertSentEmailCount(1)
    ->reset() // reset the sent email collection
    ->assertNoEmailSent()
;

Ref: #9 (comment)

@kbond kbond added the enhancement New feature or request label Oct 5, 2021
@kbond kbond merged commit f634112 into zenstruck:1.x Oct 5, 2021
@kbond kbond deleted the reset-emails branch October 5, 2021 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

None yet

1 participant