Skip to content

Tests for encrypted email support#40

Open
krrico wants to merge 1 commit into
Codeception:5.4from
krrico:feature/support_encrypted_emails
Open

Tests for encrypted email support#40
krrico wants to merge 1 commit into
Codeception:5.4from
krrico:feature/support_encrypted_emails

Conversation

@krrico
Copy link
Copy Markdown

@krrico krrico commented May 22, 2026

Added tests for sending encrypted emails and ensure mailer and mime a…ssertions can handle Message objects as well.

Fixing this issue: Codeception/module-symfony#233
Tests for those changes: Codeception/module-symfony#232

…ssertions can handle Message objects as well
Comment thread src/Utils/Crypto.php

final readonly class Crypto
{
public function generateSslCertificate(): string
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This right here is a bit of a heavy overhead for testing this but necessary for the SMimeEncrypter to generate an encrypted e-mail. Maybe adding a test certificate directly into the tests/_data directory would be better. Any opinions on that?

Another option would be to fake "encryption" and just turn an Email object into a plain Message object.

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