kirschbaum-development / mail-intercept

A testing package for intercepting mail sent from Laravel
MIT License
105 stars 7 forks source link

Add AssertableMessage to method signatures #10

Closed amsoell closed 2 years ago

amsoell commented 2 years ago

The assertMailBodyContainsString and assertMailBodyNotContainsString assertions don't currently work with the documented use, because interceptedMail() returns an array of AssertableMessage objects. This just adds the AssertableMessage type to the method signatures.

brandonferens commented 2 years ago

@amsoell you are correct. Thanks for finding this. However, it is farther reaching than this PR. I am going to add all the fixes and test updates for this.

brandonferens commented 2 years ago

I'm closing this PR as I merged #11 which solves this issue and more. It has been released as v0.3.1.