/** * 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(), '*****@*****.**'); }
/** * 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(), '*****@*****.**'); }