Neos\Flow\Tests\Unit\Configuration\ConfigurationManagerTest::postProcessConfigurationReplacesClassConstantMarkersWithApproppriateConstants PHP Метод

postProcessConfigurationReplacesClassConstantMarkersWithApproppriateConstants() публичный Метод

    public function postProcessConfigurationReplacesClassConstantMarkersWithApproppriateConstants()
    {
        $settings = ['foo' => 'bar', 'baz' => '%Neos\\Flow\\Configuration\\ConfigurationManager::CONFIGURATION_TYPE_POLICY%', 'inspiring' => ['people' => ['to' => '%Neos\\Flow\\Core\\Bootstrap::MINIMUM_PHP_VERSION%', 'share' => '%Neos\\Flow\\Package\\PackageInterface::DIRECTORY_CLASSES%']]];
        $configurationManager = $this->getAccessibleMock(ConfigurationManager::class, ['dummy'], [], '', false);
        $configurationManager->_callRef('postProcessConfiguration', $settings);
        $this->assertSame(ConfigurationManager::CONFIGURATION_TYPE_POLICY, $settings['baz']);
        $this->assertSame(Bootstrap::MINIMUM_PHP_VERSION, $settings['inspiring']['people']['to']);
        $this->assertSame(PackageInterface::DIRECTORY_CLASSES, $settings['inspiring']['people']['share']);
    }
ConfigurationManagerTest