Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecations in tests #151

Open
tacman opened this issue Jun 10, 2024 · 0 comments
Open

Fix deprecations in tests #151

tacman opened this issue Jun 10, 2024 · 0 comments

Comments

@tacman
Copy link

tacman commented Jun 10, 2024

Running the phpunit tests throws deprecations related to the foundry-bundle.


  1x: Since zenstruck\foundry 1.38.0: Configuring the default proxy auto-refresh to false is deprecated. You should set it to "true", which will be the default value in 2.0.
If you still want to disable auto refresh, make your factory implement "Zenstruck\Foundry\Persistence\PersistentObjectFactory" instead of "Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory".
    1x in ConfigureBrowserTest::browser_has_been_configured from Zenstruck\Browser\Tests

Other deprecation notices (2)

  2x: Since zenstruck\foundry 1.38.0: Configuring the default proxy auto-refresh to false is deprecated. You should set it to "true", which will be the default value in 2.0.
If you still want to disable auto refresh, make your factory implement "Zenstruck\Foundry\Persistence\PersistentObjectFactory" instead of "Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory".
    1x in ConfigureBrowserTest::browser_has_been_configured from Zenstruck\Browser\Tests
    1x in KernelBrowserAuthenticationTest::_setUpFactories from Zenstruck\Browser\Tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant