browser icon indicating copy to clipboard operation
browser copied to clipboard

Fix deprecations in tests

Open tacman opened this issue 8 months ago • 0 comments

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

tacman avatar Jun 10 '24 11:06 tacman