function 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.