Skip to content

GeneratedConfigTest cannot regenerate snapshot files #61139

@KevinVanSonsbeek

Description

@KevinVanSonsbeek

Symfony version(s) affected

7.2

Description

Through #57614 multiple uses of the uniqid have been removed.

This seems to however have broken the generating of "snapshot files" from within the GeneratedConfigTest

When uncommenting the lines on a version prior to the PR the files are regenerated without problems. Uncommenting on a version after the PR was merged however only deletes the snapshot files, and does not generate new ones.

How to reproduce

  1. Checkout the symfony repository.
  2. Open the GeneratedConfigTest.
  3. Uncomment lines to regenerate a snapshot file (should be lines 87 up to, including line 89)
  4. Run the test

A bunch of the snapshot configs are now gone.

  1. Re-comment the above mentioned lines
  2. Re-run the test

The test should now fail with the "The system cannot find the file" exception messages.

Possible Solution

Revert the changes from #57614 in the GeneratedConfigTest
It was removed as part of #57588, so just reverting the changes would not be preferable. And another fix should be implemented.

Additional Context

OS: Windows 11
PHP version: 8.3

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