Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Commitc9500d8
committed
feature#60740 [Mailer] Add
This PR was merged into the 7.4 branch.Discussion----------[Mailer] Add `assertEmailAddressNotContains`| Q | A| ------------- | ---| Branch? | 7.4| Bug fix? | no| New feature? | yes| Deprecations? | no| Issues | No| License | MITThis PR introduces a new assertion method `assertEmailAddressNotContains()` to the `MailerAssertionsTrait`.The new method complements the existing `assertEmailAddressContains()` by allowing developers to assert that a specific email address **does not** appear in a given header. This addition brings the `assertEmailAddressContains` in line with other similar assertion pairs already available in the trait, such as:- `assertEmailTextBodyContains` / `assertEmailTextBodyNotContains`- `assertEmailHtmlBodyContains` / `assertEmailHtmlBodyNotContains`- `assertEmailSubjectContains` / `assertEmailSubjectNotContains`### Example usage```php$this->assertEmailAddressNotContains($email, 'To', 'test@test.com');```Commits-------9cc6a63 [Mailer] Add new `assertEmailAddressNotContains` methodassertEmailAddressNotContains (santysisi)File tree
3 files changed
+9
-0
lines changed- src/Symfony/Bundle/FrameworkBundle
- Tests/Functional
- Test
3 files changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
93 | 98 | | |
94 | 99 | | |
95 | 100 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| 110 | + | |
| 111 | + | |
109 | 112 | | |
110 | 113 | | |
0 commit comments
Comments
(0)