Skip to content

[BC-Break] Changes to KernelTestCase in #45595 broke our test suite #45800

Closed
@althaus

Description

@althaus

Symfony version(s) affected

4.4.39

Description

Hi,

we're running our tests with a modified version of the WebTestCase to not shut down the kernel after each test (long story short: We're running on a service based legacy auth which cannot be mocked away and it quite costy.). To achieve this we changed these 2 methods in the class:

    public static function tearDownAfterClass(): void
    {
        static::ensureKernelShutdown();
    }

    protected function tearDown(): void
    {
        // Drop kernel shutdown after each single test
    }

This worked flawlessly until the Symfony 4.4.39 version of the FrameworkBundle: #45595

I understand the changes, but is there an easy solution to recover the piror behaviour?

Kind regards
Matthias

How to reproduce

See description.

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