function CacheTest::mergeMaxAgesProvider

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Cache/CacheTest.php \Drupal\Tests\Core\Cache\CacheTest::mergeMaxAgesProvider()
  2. 8.9.x core/tests/Drupal/Tests/Core/Cache/CacheTest.php \Drupal\Tests\Core\Cache\CacheTest::mergeMaxAgesProvider()
  3. 11.x 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 83

Class

CacheTest
@coversDefaultClass \Drupal\Core\Cache\Cache[[api-linebreak]] @group Cache

Namespace

Drupal\Tests\Core\Cache

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.