Comments (5)
I think so, as I didn't followed it up. Let's close this.
from liiptestfixturesbundle.
Please share the code of your fixture.
What version of Symfony do you use ?
Do you use autowiring of services? It can work for your case: https://github.com/liip/LiipFunctionalTestBundle/issues/504#issuecomment-480640875
from liiptestfixturesbundle.
Please share the code of your fixture.
What version of Symfony do you use ?
Do you use autowiring of services? It can work for your case: liip/LiipFunctionalTestBundle#504 (comment)
I'm playing around with the symfony demo app, so it's Symfony 5. But with Symfony 4 I get the same issue.
Have a look here for the test and fixture:
https://github.com/klodoma/symfony-demo/tree/master/tests/DataFixtures
I have the impression that the problem comes from the fact that the fixture is not found in /src/DataFixtures because with that it works.
from liiptestfixturesbundle.
I have the impression that the problem comes from the fact that the fixture is not found in /src/DataFixtures because with that it works.
IIRC, this bundle relies on DoctrineFixturesBundle. According to its documentation:
This command looks for all services tagged with doctrine.fixture.orm. If you're using the default service configuration, any class that implements ORMFixtureInterface (for example, those extending from Fixture) will automatically be registered with this tag.
Source: https://symfony.com/doc/master/bundles/DoctrineFixturesBundle/index.html#loading-fixtures
Maybe the class should implement ORMFixtureInterface
, but maybe it' not enough to declare fixtures in tests/
.
Here is how they are declared in internal tests, with a service tag:
LiipTestFixturesBundle/tests/App/config.yml
Lines 45 to 47 in 2370ab6
Maybe you can use a config like this in your config_test.yml
in order to declare fixtures that are not in src/
.
from liiptestfixturesbundle.
Did the last comment helped you?
from liiptestfixturesbundle.
Related Issues (20)
- ORMDatabaseTool is using 'master' instead of 'primary' when having replicas HOT 3
- Issue with `doctrine/persistence` v3 HOT 5
- `AbstractDatabaseTool::getBackupService()` relies on deprecated method HOT 1
- Compatibility with doctrine/persistence 3 HOT 1
- Split tests on CI
- Error: Call to undefined method ClassMetadataFactory#getCacheDriver HOT 2
- Use issue form
- Excessive memory consuption due to DatabaseToolCollection service HOT 3
- PDOException: There is no active transaction HOT 8
- API Stability HOT 2
- Schema public cannot be recreated HOT 5
- [question] Using one database state for all tests HOT 4
- Unknown database type enum requested, Doctrine\DBAL\Platforms\MySQL57Platform may not support it. HOT 4
- UserPasswordHasherInterface injection in fixtures HOT 10
- [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
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.