Ejemplo n.º 1
0
 /**
  * Test cache key logged in, no params
  */
 function testCacheKeyLoggedIn()
 {
     $_SESSION['user'] = '******';
     $config = Config::getInstance();
     $config->setValue('cache_pages', true);
     $controller = new TestAuthController(true);
     $results = $controller->go();
     $this->assertEqual($controller->getCacheKeyString(), '*****@*****.**');
 }
Ejemplo n.º 2
0
 /**
  * Test cache key logged in, no params
  */
 public function testCacheKeyLoggedIn()
 {
     $this->simulateLogin('*****@*****.**');
     $config = Config::getInstance();
     $config->setValue('cache_pages', true);
     $controller = new TestAuthController(true);
     $results = $controller->go();
     $this->assertEqual($controller->getCacheKeyString(), '*****@*****.**');
 }