Neos\Neos\Tests\Unit\Domain\Service\ConfigurationContentDimensionPresetSourceTest::findPresetByUriSegmentWithExistingUriSegmentReturnsPreset PHP Method

findPresetByUriSegmentWithExistingUriSegmentReturnsPreset() public method

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