Could I load fixtures from different entity managers with LiipTestFixturesBundle

I have entities which are managed by two entity managers in Symfony 4 project and I would like to load fixtures from both connections for functional tests. For instance :

class AdapterTest extends KernelTestCase
    use FixturesTrait;


    protected function setUp(): void

        // Not working, just for example
        $this->loadFixtures([CounterFixtures::class], false, 'counter');



Unfortunatly, tables are dropped and only tables related to last entity manager connection are loaded.

I use LiipTestFixturesBundle v1.9.1.

Does this bundle support it or do you know how I can do that?

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *