Skip to content

[Mailer] Impossibile to check if email was sent on test environment #62094

@raffaelecarelle

Description

@raffaelecarelle

Symfony version(s) affected

7.3.4

Description

This pr #60515 introduce a bug on send email in test environment.

This assertions self::assertQueuedEmailCount(1); or self::assertQueuedEmailCount(1); doesn't work anymore with profiler disactivated:

when@test:
    web_profiler:
        toolbar: false
        intercept_redirects: false

    framework:
        profiler: { collect: false }

How to reproduce

Create a phpunit integration test where an email will send.

In this test check if email was sent

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions