SetupFactory
SetupFactory.php
:
13
A Test Factory is used to setup the infrastructure for a tests, based on a specific repository implementation to test.
Methods¶
getConfigValue() ¶
SetupFactory.php
:
41
Returns a config value for $configKey.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$configKey | string | - | - |
Tags
getIdManager() ¶
SetupFactory.php
:
30
Returns a repository specific ID manager.
|
|
Return values
IdManager
getRepository() ¶
SetupFactory.php
:
23
Returns a configured repository for testing.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$initializeFromScratch | bool | true |
if the back end should be initialized from scratch or re-used |
Return values
getServiceContainer() ¶
SetupFactory.php
:
50
Returns the service container used for initialization of the repository.
|
|
Most tests should not use this at all!!
Return values
ServiceContainer