You are here

public function CacheTest::mergeMaxAgesProvider 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::mergeMaxAgesProvider()

Provides a list of pairs of cache tags arrays to be merged.

Return value

array

File

core/tests/Drupal/Tests/Core/Cache/CacheTest.php, line 93
Contains \Drupal\Tests\Core\Cache\CacheTest.

Class

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

Namespace

Drupal\Tests\Core\Cache

Code

public function mergeMaxAgesProvider() {
  return [
    [
      Cache::PERMANENT,
      Cache::PERMANENT,
      Cache::PERMANENT,
    ],
    [
      60,
      60,
      60,
    ],
    [
      0,
      0,
      0,
    ],
    [
      60,
      0,
      0,
    ],
    [
      0,
      60,
      0,
    ],
    [
      Cache::PERMANENT,
      0,
      0,
    ],
    [
      0,
      Cache::PERMANENT,
      0,
    ],
    [
      Cache::PERMANENT,
      60,
      60,
    ],
    [
      60,
      Cache::PERMANENT,
      60,
    ],
  ];
}