You are here

public function CacheTest::testMergeMaxAges in Drupal 9

Same name and namespace in other branches
  1. 8 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\Cache

Code

public function testMergeMaxAges($expected, ...$max_ages) {
  $this
    ->assertSame($expected, Cache::mergeMaxAges(...$max_ages));
}