You are here

public function CacheTest::testMergeMaxAges in Drupal 8

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

Class

CacheTest
@coversDefaultClass \Drupal\Core\Cache\Cache @group Cache

Namespace

Drupal\Tests\Core\Cache

Code

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