protected injectApplicationContextIntoConfigurationManager ( |
||
$context | ||
return | void |
protected function injectApplicationContextIntoConfigurationManager(ApplicationContext $context)
{
ObjectAccess::setProperty($this->mockConfigurationManager, 'configurations', [ConfigurationManager::CONFIGURATION_TYPE_SETTINGS => []], true);
ObjectAccess::setProperty($this->mockConfigurationManager, 'context', $context, true);
ObjectAccess::setProperty($this->mockConfigurationManager, 'orderedListOfContextNames', [(string) $context], true);
ObjectAccess::setProperty($this->mockConfigurationManager, 'includeCachedConfigurationsPathAndFilename', FLOW_PATH_CONFIGURATION . (string) $context . '/IncludeCachedConfigurations.php', true);
}