class SchemaDependentCase extends KernelDependentCase (View source)

Class SchemaDependentCase for UnitTest which need EntityManager.

Be careful, these tests must be executed on a clear database! Or all data will be lost.

Properties

static EntityManager $entityManager

Methods

static Request
getMockRequest()

No description

static 
setUpBeforeClass()

No description

static 
tearDownAfterClass()

No description

Container
getContainer()

No description

setContainer(Container $container)

No description

mixed
get(string $serviceName)

Return a service from container.

bool
has(string $serviceName)

Returns true if the service is defined.

static Node
createNode($title, Translation $translation)

No description

static EntityManager
getManager()

No description

Details

static Request getMockRequest()

Return Value

Request

static setUpBeforeClass()

Exceptions

ToolsException

static tearDownAfterClass()

Container getContainer()

Return Value

Container

ContainerAwareInterface setContainer(Container $container)

Parameters

Container $container

Return Value

ContainerAwareInterface

mixed get(string $serviceName)

Return a service from container.

Parameters

string $serviceName

Return Value

mixed

bool has(string $serviceName)

Returns true if the service is defined.

Parameters

string $serviceName

Return Value

bool true if the service is defined, false otherwise

static protected Node createNode($title, Translation $translation)

Parameters

$title
Translation $translation

Return Value

Node

static EntityManager getManager()

Return Value

EntityManager