zenstruck / browser

A fluent interface for your Symfony functional tests.
MIT License
185 stars 17 forks source link

Fix deprecations in tests #151

Open tacman opened 2 months ago

tacman commented 2 months ago

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