This is the list of actions that you need to take when upgrading this bundle from the 2.x to the 3.x version:
- Fixtures loading has been moved to a separate bundle named LiipTestFixturesBundle
- If you need to load fixtures, follow the install guide for LiipTestFixturesBundle
- If you used configuration
liip_functional_test.cache_db
, change it toliip_test_fixtures.cache_db
- if you used to stubs
doctrine.dbal.connection_factory.class
you need now to useLiip\TestFixturesBundle\Factory\ConnectionFactory
instead ofLiip\FunctionalTestBundle\Factory\ConnectionFactory
- And call
use \Liip\TestFixturesBundle\Test\FixturesTrait;
in tests classes in order to access toloadFixtures()
andloadFixtureFiles()
- Change
Liip\FunctionalTestBundle\Annotations\DisableDatabaseCache
byLiip\TestFixturesBundle\Annotations\DisableDatabaseCache
-
makeClient()
doesn't accept a boolean or array as its first argument, it has been split in 2 functions: Old code:$client = static::makeClient(true);
New code:
$client = static::makeAuthenticatedClient();
Old code:
$client = static::makeClient([ 'username' => 'foobar', 'password' => '12341234', ]);
New code:
$client = static::makeClientWithCredentials('foobar', '12341234');
These 2 new methods still accept an array for parameters as the last argument.