Download the PHP package takeit/doctrine-data-fixtures-extension without Composer
On this page you can find all versions of the php package takeit/doctrine-data-fixtures-extension. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download takeit/doctrine-data-fixtures-extension
More information about takeit/doctrine-data-fixtures-extension
Files in takeit/doctrine-data-fixtures-extension
Package doctrine-data-fixtures-extension
Short Description Doctrine data fixtures extension for Behat
License MIT
Homepage http://github.com/BehatExtension/
Informations about the package doctrine-data-fixtures-extension
Doctrine Fixtures Extension for Behat
The extension increases feature test isolation by reloading ORM data fixtures between scenarios and features.
Installation
Configuration
Activate extension in your behat.yml and define any fixtures to be loaded:
When lifetime is set to "feature" (or unspecified), data fixtures are reloaded between feature files. Alternately, when lifetime is set to "scenario", data fixtures are reloaded between scenarios (i.e., increased test isolation at the expense of increased run time).
When autoload is true, the extension will load the data fixtures for registered bundles.
Please note that only fixtures stored in the folder /DataFixtures/ORM
of the bundles are loaded.
If you want to load fixtures tagged with doctrine.fixture.orm
, you must enable the bundle BehatExtension\DoctrineDataFixturesExtension\Bundle\BehatDoctrineDataFixturesExtensionBundle
in your test AppKernel
class.
When fixtures is set, the DoctrineDataFixtures extension will load the specified fixture classes.
When directories is set, the DoctrineDataFixtures extension will load the data fixtures globed from the respective directories.
Backup System
To speed up the tests, a backup system is available. The whole database will be set in cache and reloaded when needed. 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.
This feature is only available for the following SGDB: SQLite, MySQL, PostgreSQL.
It is enabled by default. To disable it, you just have to set use_backup: false
in the extension configuration:
Source
Github: https://github.com/BehatExtension/DoctrineDataFixturesExtension
Forked from https://github.com/vipsoft/DoctrineDataFixturesExtension
Copyright
- Copyright (c) 2012 Anthon Pang.
- Copyright (c) 2016-2018 Florent Morselli.
See LICENSE for details.
Contributors
- Anthon Pang (robocoder)
- Florent Morselli (Spomky)
- Others contributors
All versions of doctrine-data-fixtures-extension with dependencies
behat/behat Version ^3.0
behat/symfony2-extension Version ^2.0
doctrine/data-fixtures Version ^1.0
doctrine/orm Version ^2.6
symfony/dependency-injection Version ^3.4|^4.0