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.
http://api.symfony.com/4.0/Symfony/Bridge/Doctrine/Test/DoctrineTestHelper.html