public function CacheTest::testMergeMaxAges in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Cache/CacheTest.php \Drupal\Tests\Core\Cache\CacheTest::testMergeMaxAges()
- 9 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 108
Class
- CacheTest
- @coversDefaultClass \Drupal\Core\Cache\Cache @group Cache
Namespace
Drupal\Tests\Core\CacheCode
public function testMergeMaxAges($expected, ...$max_ages) {
$this
->assertSame($expected, Cache::mergeMaxAges(...$max_ages));
}