Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Codeception/module-symfony
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: bed4de2
Choose a base ref
...
head repository: Codeception/module-symfony
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 558c038
Choose a head ref
  • 10 commits
  • 40 files changed
  • 3 contributors

Commits on Jun 6, 2026

  1. Configuration menu
    Copy the full SHA
    bcb9191 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2026

  1. Support RawMessage instead of Email for Mail/Mime assertions (#232)

    * adjusted type hints of Mailer and Mime assertions traits to support RawMessage and Message instead of Email only
    
    * Enhance mailer assertions to support Message objects
    
    ---------
    
    Co-authored-by: Rico Kritz <>
    Co-authored-by: Aaron Gustavo Nieves <ganieves@outlook.com>
    krrico and TavoNiievez authored Jun 15, 2026
    Configuration menu
    Copy the full SHA
    250f628 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2026

  1. Configuration menu
    Copy the full SHA
    81c0365 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2026

  1. Fix security context missing in Doctrine entity listeners after kerne…

    …l reboot (#236)
    
    _getEntityManager() persisted the EntityManager as a permanent service, so it
    was carried across kernel reboots and re-injected into the freshly booted
    container. An EntityManager cannot survive a reboot: its ListenersInvoker is
    bound (readonly) to the container it was built in, so lazy entity listeners
    resolve dependencies like security.token_storage from that now-stale
    container. The logged-in user was therefore invisible inside the listener
    while visible in the controller. In pure Symfony (WebTestCase) there is no
    reboot, one container, so listener and controller share the same context.
    
    Fix: resolve the EntityManager fresh from the current container on every call
    instead of caching it as a permanent service. Only doctrine.dbal.default_connection
    stays persistent, which is what keeps the open test transaction alive across
    reboots; the freshly rebuilt EntityManager runs on top of it, with every
    dependency (security included) wired to the current request. This also keeps
    the module's Doctrine helpers and the application on a single identity map,
    matching pure Symfony.
    
    Fixes #34, #90, #150, #151
    TavoNiievez authored Jun 22, 2026
    Configuration menu
    Copy the full SHA
    6cd2150 View commit details
    Browse the repository at this point in the history
  2. Fix profiler service deprecation by using non-deprecated internal id (#…

    …237)
    
    Accessing the "profiler" service directly from the container triggers a
    deprecation since symfony/framework-bundle 5.4: "Accessing the "profiler"
    service directly from the container is deprecated, use dependency
    injection instead."
    
    The public "profiler" id is a deprecated alias that calls
    trigger_deprecation() before delegating to the real, non-deprecated
    private definition ".container.private.profiler". Prefer the internal id
    and fall back to "profiler" for older/edge configs where the alias does
    not exist. This avoids the deprecation on every container path (raw or
    test container) across Symfony 5.4 to 8.0.
    
    Closes #212
    TavoNiievez authored Jun 22, 2026
    Configuration menu
    Copy the full SHA
    a798e89 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2026

  1. Configuration menu
    Copy the full SHA
    4901a7d View commit details
    Browse the repository at this point in the history
  2. Add Symfony-inherited assertions (Browser, DomCrawler, Mailer, Mime) (#…

    …240)
    
    Bring assertion/getter methods that mirror Symfony's own test API into the
    matching module traits (assert*/get* family, per the naming convention):
    
    - BrowserAssertionsTrait: assertBrowserHistoryIsOnFirstPage /
      assertBrowserHistoryIsNotOnFirstPage / assertBrowserHistoryIsOnLastPage /
      assertBrowserHistoryIsNotOnLastPage (wrap symfony/browser-kit constraints)
    - DomCrawlerAssertionsTrait: assertSelectorCount, assertAnySelectorTextContains,
      assertAnySelectorTextSame, assertAnySelectorTextNotContains
    - MailerAssertionsTrait: getMailerEvents, getMailerMessages, getMailerMessage
    - MimeAssertionsTrait: assertEmailAddressNotContains, assertEmailSubjectContains,
      assertEmailSubjectNotContains
    TavoNiievez authored Jun 23, 2026
    Configuration menu
    Copy the full SHA
    7d9317f View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2026

  1. Configuration menu
    Copy the full SHA
    7f0cd5d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bb77041 View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2026

  1. Configuration menu
    Copy the full SHA
    558c038 View commit details
    Browse the repository at this point in the history
Loading