W3cubDocs

/Symfony 4.1

DoctrineTestHelper

class DoctrineTestHelper

Provides utility functions needed in tests.

Methods

static EntityManager createTestEntityManager(Configuration $config = null)

Returns an entity manager for testing.

static Configuration createTestConfiguration()

Details

static EntityManager createTestEntityManager(Configuration $config = null)

Returns an entity manager for testing.

Parameters

Configuration $config

Return Value

EntityManager

static Configuration createTestConfiguration()

Return Value

Configuration

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bridge/Doctrine/Test/DoctrineTestHelper.html