@@ 391-406 (lines=16) @@ | ||
388 | /** |
|
389 | * @group legacy |
|
390 | */ |
|
391 | public function testCacheConfigDeprecationCompatibility(): void |
|
392 | { |
|
393 | $file = __DIR__.'/../../Resources/Fixtures/config/bc/cache_config.yml'; |
|
394 | $config = $this->emptyConfig; |
|
395 | $config['plugins']['cache'] = array_merge($config['plugins']['cache'], [ |
|
396 | 'enabled' => true, |
|
397 | 'cache_pool' => 'my_cache_pool', |
|
398 | 'config' => [ |
|
399 | 'methods' => ['GET', 'HEAD'], |
|
400 | 'respect_cache_headers' => true, |
|
401 | 'blacklisted_paths' => [], |
|
402 | 'cache_listeners' => [], |
|
403 | ], |
|
404 | ]); |
|
405 | $this->assertProcessedConfigurationEquals($config, [$file]); |
|
406 | } |
|
407 | ||
408 | /** |
|
409 | * @group legacy |
|
@@ 411-426 (lines=16) @@ | ||
408 | /** |
|
409 | * @group legacy |
|
410 | */ |
|
411 | public function testCacheConfigDeprecationCompatibilityIssue166(): void |
|
412 | { |
|
413 | $file = __DIR__.'/../../Resources/Fixtures/config/bc/issue-166.yml'; |
|
414 | $config = $this->emptyConfig; |
|
415 | $config['plugins']['cache'] = array_merge($config['plugins']['cache'], [ |
|
416 | 'enabled' => true, |
|
417 | 'cache_pool' => 'my_cache_pool', |
|
418 | 'config' => [ |
|
419 | 'methods' => ['GET', 'HEAD'], |
|
420 | 'respect_cache_headers' => false, |
|
421 | 'blacklisted_paths' => [], |
|
422 | 'cache_listeners' => [], |
|
423 | ], |
|
424 | ]); |
|
425 | $this->assertProcessedConfigurationEquals($config, [$file]); |
|
426 | } |
|
427 | ||
428 | public function testProfilingToolbarCollision(): void |
|
429 | { |