You are here

public function CacheTest::testMergeMaxAges in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 116
Contains \Drupal\Tests\Core\Cache\CacheTest.

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));
}