function CacheCollectorHelper::setCacheCreated

Same name in other branches
  1. 10 core/tests/Drupal/Tests/Core/Cache/CacheCollectorHelper.php \Drupal\Tests\Core\Cache\CacheCollectorHelper::setCacheCreated()

Setter for the cacheCreated property for use in unit tests.

Parameters

int $cache_created: A unix timestamp.

File

core/tests/Drupal/Tests/Core/Cache/CacheCollectorHelper.php, line 75

Class

CacheCollectorHelper
Helper class to test the cache collector.

Namespace

Drupal\Tests\Core\Cache

Code

public function setCacheCreated(int $cache_created) : void {
    $this->cacheCreated = $cache_created;
}

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