You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Loader with DI added
* After test cache clearance
* Tests added
* Fixture Loaders are now private
* CS and debug
* SF 4.1 and 4.2@dev tests
* Documentation
* Branch aliases updated
@@ -29,14 +28,15 @@ When **lifetime** is set to "feature" (or unspecified), data fixtures are reload
29
28
when **lifetime** is set to "scenario", data fixtures are reloaded between scenarios (i.e., increased
30
29
test isolation at the expense of increased run time).
31
30
32
-
When **autoload** is true, the extension will load the data fixtures for registered bundles.
33
-
Please note that only fixtures stored in the folder `/DataFixtures/ORM` of the bundles are loaded.
34
-
If you want to load fixtures tagged with `doctrine.fixture.orm`, you must enable the bundle `BehatExtension\DoctrineDataFixturesExtension\Bundle\BehatDoctrineDataFixturesExtensionBundle`
35
-
in your test `AppKernel` class.
31
+
When **fixtures** is set, the extension will load the specified fixture classes.
32
+
This must contain a list of fully qualified class names. Classes MUST not have any constructor arguments (or at least optional).
33
+
If the interface `Symfony\Component\DependencyInjection\ContainerAwareInterface` is implemented, the container is set to the fixture loader.
36
34
37
-
When **fixtures** is set, the DoctrineDataFixtures extension will load the specified fixture classes.
35
+
When **directories** is set, the extension will load the data fixtures globed from the respective directories.
36
+
Classes MUST not have any constructor arguments (or at least optional).
37
+
If the interface `Symfony\Component\DependencyInjection\ContainerAwareInterface` is implemented, the container is set to the fixture loader.
38
38
39
-
When **directories** is set, the DoctrineDataFixtures extension will load the data fixtures globed from the respective directories.
39
+
This extension will also load every fixtures declared as services and tagged with `doctrine.fixture.orm`.
To speed up the tests, a backup system is available. The whole database will be set in cache and reloaded when needed.
60
59
You should periodically clear the cache as it does not detect changes to the data fixture contents because the hash is based on the collection of data fixture class names.
61
60
62
-
This feature is only available for the following SGDB: SQLite, MySQL, PostgreSQL.
61
+
This feature is only available for SQLite, MySQL and PostgreSQL.
62
+
63
+
* For MySQL, `mysql` and `mysqldump` must be available.
64
+
* For PostgreSQL, `pg_restore` and `pg_dump` must be available.
63
65
64
66
It is enabled by default. To disable it, you just have to set `use_backup: false` in the extension configuration:
0 commit comments