Comments (4)
Ok! Thank you @alexislefebvre for your help 🙂.
from liiptestfixturesbundle.
Hello 👋,
do you want to load fixtures only once before running tests, or before running each test? This bundle was designed for loading fixtures before each test.
For loading fixtures only once, you may be able to load the fixtures before running your test, and use DAMADoctrineTestBundle so that the database is not altered by the tests (the transaction will revert the changes automatically).
from liiptestfixturesbundle.
Yes, want to load fixtures only once before running tests 🙂. Currently I'm doing that with help of a separate Symfony bootstrap file, but that makes me not being able to access created fixture references unfortunately at the level of tests. Trying to figure it out whether there's a way to it 😁. But I'm assuming it's not possible with this bundle.
from liiptestfixturesbundle.
This bundle load the fixtures and return them:
LiipTestFixturesBundle/tests/Test/ConfigMysqlTest.php
Lines 98 to 114 in 39cd702
Alternatively, you can access to the fixtures during the tests by using an id, email, etc. in order to fetch the fixtures you want. As long as you have access to the repository of your entity, you can fetch it.
from liiptestfixturesbundle.
Related Issues (20)
- [Bug]: Nonexistant service for DB backup does not fail HOT 1
- chore: improve ci for symfony 4.4 HOT 1
- [Feature Request]: Add support of Behat
- [Bug]: Multiple entity managers per connection OR entity manager name does not match connection name HOT 5
- Drop support of PHP 7.2 and 7.3? HOT 1
- [Bug]: keep_database_and_schema config is ignored it is always false with SQL Server HOT 2
- facing issue in new pimcore version 10.6 HOT 5
- [Feature Request]: Add LoadFixtureGroup method HOT 2
- Deprecated DBAL APIs still in use HOT 1
- Question: cached database with GitLab CI pipeline HOT 2
- Load fixture without a file path HOT 7
- [Feature Request]: Support Symfony 7 HOT 1
- [Bug]: $referenceRepository->getReferences() is broken HOT 1
- [Bug]: mysqldump: unknown variable 'column-statistics=0' error HOT 7
- Performance with LiipTestFixturesBundle v2.6.0 HOT 7
- SqlitePlatform::getName() is deprecated HOT 4
- [Bug]: Impossible to set "keep_database_and_schema" HOT 4
- [Bug]: 2.7.2 - Doctrine MongoDB Manager can not be used anymore HOT 2
- [Feature Request]: Upgrading doctrine/dbal Connection handling HOT 5
- [Feature Request]: Support "doctrine/dbal" 4 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from liiptestfixturesbundle.