function CacheableMetadataTest::providerSetCacheMaxAge
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php \Drupal\Tests\Core\Cache\CacheableMetadataTest::providerSetCacheMaxAge()
- 8.9.x core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php \Drupal\Tests\Core\Cache\CacheableMetadataTest::providerSetCacheMaxAge()
- 11.x core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php \Drupal\Tests\Core\Cache\CacheableMetadataTest::providerSetCacheMaxAge()
Data provider for testSetCacheMaxAge.
File
-
core/
tests/ Drupal/ Tests/ Core/ Cache/ CacheableMetadataTest.php, line 125
Class
- CacheableMetadataTest
- @coversDefaultClass \Drupal\Core\Cache\CacheableMetadata @group Cache
Namespace
Drupal\Tests\Core\CacheCode
public static function providerSetCacheMaxAge() {
return [
[
0,
FALSE,
],
[
'http',
TRUE,
],
[
'0',
TRUE,
],
[
new \stdClass(),
TRUE,
],
[
300,
FALSE,
],
[
[],
TRUE,
],
[
8.0,
TRUE,
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.