data-fixtures
data-fixtures copied to clipboard
Doctrine2 ORM Data Fixtures Extensions
Hi guys, Here is an initial draft for evaluation for the newer version of our data fixtures code. I'd like people to evaluate and ask whatever questions you may have...
Several libraries, such as [LiipFunctionalTestBundle](https://github.com/liip/LiipFunctionalTestBundle/blob/master/Test/WebTestCase.php), [h4ccAliceFixturesBundle](https://github.com/h4cc/AliceFixturesBundle/blob/master/ORM/DoctrineORMSchemaTool.php) and [VIPSoft DoctrineDataFixturesExtension](https://github.com/vipsoft/DoctrineDataFixturesExtension/blob/master/src/VIPSoft/DoctrineDataFixturesExtension/Service/FixtureService.php), provide their own implementation of: - recreating the database between tests - restoring the database from a backup, e.g. by copying...
https://github.com/doctrine/data-fixtures/blob/master/lib/Doctrine/Common/DataFixtures/Executor/AbstractExecutor.php#L122 In a project of mine I have a case of two dependent fixtures in which the ObjectManager should not have been cleared between their load(). I think it would...
Hi @greg0ire Closes https://github.com/doctrine/data-fixtures/issues/408 I introduce a `$class` param in a BC way: - If you use it, phpstan/psalm understand the return type - If you don't use it, it...
For your consideration, see #272. I don't know if the discussion was a yes/no to this feature. I can push a little refactor of `getTruncateTableSQL()` to make it fit better.
When doing something like ``` $user->setContext($this->getReference(ContextFixtures::FR)); ``` currently phpstan is reporting an error before getReference is typehinted as an object, and not a Context class. Also, if I have a...
`MockBuilder::addMethods()` is deprecated in PHPUnit 10.1 https://github.com/sebastianbergmann/phpunit/issues/5320 To run the tests with PHPCR, I have to add this to `composer.json`: ```json "doctrine/phpcr-odm": "^1.8", "jackalope/jackalope-fs": "*", ``` And run `COMPOSER_ROOT_VERSION=1.99 composer...
Follow-up #457 ~Could you create the 2.0.x branch, please.~
Hey, in the past my each test I wrote, loaded the fixtures (or part of it) before executing. Then I used the ReferenceRepository to get references to objects required in...
In ORMExecutor the code for purging db tables and loading fixtures is wrapped in one transaction. If I try to purge tables with TRUNCATE (because I want to reset auto-increments)...