You are here

public function RendererTest::providerTestRenderCacheMaxAge in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Render/RendererTest.php \Drupal\Tests\Core\Render\RendererTest::providerTestRenderCacheMaxAge()
  2. 10 core/tests/Drupal/Tests/Core/Render/RendererTest.php \Drupal\Tests\Core\Render\RendererTest::providerTestRenderCacheMaxAge()

File

core/tests/Drupal/Tests/Core/Render/RendererTest.php, line 872
Contains \Drupal\Tests\Core\Render\RendererTest.

Class

RendererTest
@coversDefaultClass \Drupal\Core\Render\Renderer @group Render

Namespace

Drupal\Tests\Core\Render

Code

public function providerTestRenderCacheMaxAge() {
  return [
    [
      0,
      FALSE,
      NULL,
    ],
    [
      60,
      TRUE,
      (int) $_SERVER['REQUEST_TIME'] + 60,
    ],
    [
      Cache::PERMANENT,
      TRUE,
      -1,
    ],
  ];
}