class DefaultThemeDependentCase extends SchemaDependentCase (View source)

Class DefaultThemeDependentCase for UnitTest which need EntityManager and some NodeTypes and nodes.

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

Properties

static EntityManager $entityManager from SchemaDependentCase
static RoadizApplication $application

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

static int
runCommand($command)

No description

static Node
createPageNode($title, Translation $translation, Node $parent = null)

No need to persist

static Tag
createTag($title, Translation $translation)

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

static protected int runCommand($command)

Parameters

$command

Return Value

int

Exceptions

Exception

static protected Node createPageNode($title, Translation $translation, Node $parent = null)

No need to persist

Parameters

$title
Translation $translation
Node $parent

Return Value

Node

static protected Tag createTag($title, Translation $translation)

Parameters

$title
Translation $translation

Return Value

Tag