You are here

public function Redis_Tests_Cache_AbstractFixesUnitTestCase::testUserSetDefaultPermTtl in Redis 7.2

File

lib/Redis/Tests/Cache/AbstractFixesUnitTestCase.php, line 69

Class

Redis_Tests_Cache_AbstractFixesUnitTestCase
Bugfixes made over time test class.

Code

public function testUserSetDefaultPermTtl() {
  global $conf;

  // This also testes string parsing. Not fully, but at least one case.
  $conf['redis_perm_ttl'] = "3 months";
  $backend = $this
    ->getBackend();
  $this
    ->assertIdentical(7776000, $backend
    ->getPermTtl());
}