Skip to content

Added assertions for Symfony Mime component #139

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

Merged
merged 3 commits into from
Jul 7, 2021
Merged

Added assertions for Symfony Mime component #139

merged 3 commits into from
Jul 7, 2021

Conversation

TavoNiievez
Copy link
Member

@TavoNiievez TavoNiievez commented Jun 20, 2021

New assertions:

  • assertEmailAddressContains
  • assertEmailAttachmentCount
  • assertEmailHasHeader
  • assertEmailHeaderNotSame
  • assertEmailHeaderSame
  • assertEmailHtmlBodyContains
  • assertEmailHtmlBodyNotContains
  • assertEmailNotHasHeader
  • assertEmailTextBodyContains
  • assertEmailTextBodyNotContains

All of them were already available in symfony/framework-bundle, however, until now it was not possible to use them with the '$I->assert...' syntax.

Since they are intended (but not limited) to be used in unit tests, the 'assert' prefix is ​​kept.

  • Documentation remains to be done.
  • Add code examples

@TavoNiievez TavoNiievez marked this pull request as ready for review July 7, 2021 00:15
@TavoNiievez TavoNiievez added this to the 2.0.4 milestone Jul 7, 2021
@TavoNiievez TavoNiievez merged commit 3e43a76 into Codeception:main Jul 7, 2021
@TavoNiievez TavoNiievez modified the milestones: 2.0.4, 2.0.5 Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant