You are here

public function CouchbaseCacheTest::testLongLifetime in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/CouchbaseCacheTest.php \Doctrine\Tests\Common\Cache\CouchbaseCacheTest::testLongLifetime()

File

vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/CouchbaseCacheTest.php, line 33

Class

CouchbaseCacheTest

Namespace

Doctrine\Tests\Common\Cache

Code

public function testLongLifetime() {
  $cache = $this
    ->_getCacheDriver();
  $cache
    ->save('key', 'value', 30 * 24 * 3600 + 1);
  $this
    ->assertTrue($cache
    ->contains('key'), 'Couchbase provider should support TTL > 30 days');
}