function CacheTest::testMergeMaxAges
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Cache/CacheTest.php \Drupal\Tests\Core\Cache\CacheTest::testMergeMaxAges()
- 8.9.x core/tests/Drupal/Tests/Core/Cache/CacheTest.php \Drupal\Tests\Core\Cache\CacheTest::testMergeMaxAges()
- 11.x core/tests/Drupal/Tests/Core/Cache/CacheTest.php \Drupal\Tests\Core\Cache\CacheTest::testMergeMaxAges()
@covers ::mergeMaxAges
@dataProvider mergeMaxAgesProvider
File
-
core/
tests/ Drupal/ Tests/ Core/ Cache/ CacheTest.php, line 113
Class
- CacheTest
- @coversDefaultClass \Drupal\Core\Cache\Cache @group Cache
Namespace
Drupal\Tests\Core\CacheCode
public function testMergeMaxAges($expected, ...$max_ages) : void {
$this->assertSame($expected, Cache::mergeMaxAges(...$max_ages));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.