/**
  * Test controller for non-logged in user
  * @TODO Possibly load the resulting markup as a DOM object and test various children in it;
  * this would enforce valid markup
  */
 public function testControlNotLoggedIn()
 {
     $config = Config::getInstance();
     $controller = new UpgradeApplicationController(true);
     $results = $controller->go();
     $v_mgr = $controller->getViewManager();
     $config = Config::getInstance();
     $this->assertEqual('You must <a href="' . $config->getValue('site_root_path') . 'session/login.php">log in</a> to do this.', $v_mgr->getTemplateDataItem('error_msg'));
 }