Neos\Flow\Tests\Unit\Configuration\ConfigurationManagerTest::loadConfigurationForCachesOverridesConfigurationByContext PHP Method

loadConfigurationForCachesOverridesConfigurationByContext() public method

    public function loadConfigurationForCachesOverridesConfigurationByContext()
    {
        $configurationManager = $this->getConfigurationManagerWithFlowPackage('packageCachesCallback', 'Testing/System1');
        $mockPackages = $this->getMockPackages();
        $configurationManager->_call('loadConfiguration', ConfigurationManager::CONFIGURATION_TYPE_CACHES, $mockPackages);
        $actualConfigurations = $configurationManager->_get('configurations');
        $expectedCachesConfiguration = [\Neos_Flow_SomeCache::class => ['configPackageCaches' => 'correct', 'configGlobalCaches' => 'correct', 'configPackageContextCaches' => 'correct', 'configGlobalContextCaches' => 'correct', 'configPackageSubContextCaches' => 'correct', 'configGlobalSubContextCaches' => 'correct']];
        $this->assertSame($expectedCachesConfiguration, $actualConfigurations[ConfigurationManager::CONFIGURATION_TYPE_CACHES]);
    }
ConfigurationManagerTest