Code Duplication    Length = 14-14 lines in 2 locations

tests/Unit/DependencyInjection/ConfigurationTest.php 2 locations

@@ 336-349 (lines=14) @@
333
    /**
334
     * @group legacy
335
     */
336
    public function testCacheConfigDeprecationCompatibility()
337
    {
338
        $file = __DIR__.'/../../Resources/Fixtures/config/bc/cache_config.yml';
339
        $config = $this->emptyConfig;
340
        $config['plugins']['cache'] = array_merge($config['plugins']['cache'], [
341
            'enabled' => true,
342
            'cache_pool' => 'my_cache_pool',
343
            'config' => [
344
                'methods' => ['GET', 'HEAD'],
345
                'respect_cache_headers' => true,
346
            ],
347
        ]);
348
        $this->assertProcessedConfigurationEquals($config, [$file]);
349
    }
350
351
    /**
352
     * @group legacy
@@ 354-367 (lines=14) @@
351
    /**
352
     * @group legacy
353
     */
354
    public function testCacheConfigDeprecationCompatibilityIssue166()
355
    {
356
        $file = __DIR__.'/../../Resources/Fixtures/config/bc/issue-166.yml';
357
        $config = $this->emptyConfig;
358
        $config['plugins']['cache'] = array_merge($config['plugins']['cache'], [
359
            'enabled' => true,
360
            'cache_pool' => 'my_cache_pool',
361
            'config' => [
362
                'methods' => ['GET', 'HEAD'],
363
                'respect_cache_headers' => false,
364
            ],
365
        ]);
366
        $this->assertProcessedConfigurationEquals($config, [$file]);
367
    }
368
369
    /**
370
     * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException