Skip to content

Create multiple users for functional testing #36439

Open
@PF4Public

Description

@PF4Public

Symfony version(s) affected: 5+

Description
Before upgrading to 5 version, I used several static::createClient() in tests, which worked fine, but was broke with version 5.

Reading Documentation one could be assured, that multiple static::createClient() are fine and should work, which is false.

->insulate(); does not help either.

How to reproduce

$harry = static::createClient();
$sally = static::createClient();

Possible Solution
Either revert the change, that broke this, or update the documentation with the details on how to actually
...create several clients:
$harry = static::createClient();
$sally = static::createClient();
This works...

Additional context
This issue is essentially the same as #35031, but that issue was closed as fixed, whereas in fact it is not fixed at all.

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy