Neos\Neos\Tests\Unit\Domain\Service\ConfigurationContentDimensionPresetSourceTest::findPresetByDimensionValuesWithExistingValuesReturnsPreset PHP Метод

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

    public function findPresetByDimensionValuesWithExistingValuesReturnsPreset()
    {
        $source = new ConfigurationContentDimensionPresetSource();
        $source->setConfiguration($this->validConfiguration);
        $preset = $source->findPresetByDimensionValues('language', array('de_DE', 'de_ZZ', 'mul_ZZ'));
        $this->assertArrayHasKey('uriSegment', $preset);
        $this->assertEquals('deutsch', $preset['uriSegment']);
    }