Permalink
Browse files

Fix TestOfCheckVersionController failure

  • Loading branch information...
1 parent 728867f commit ba3eae77c70de0a5d771f609e66e0ca4e55d26f9 @ginatrapani ginatrapani committed Nov 8, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 tests/TestOfCheckVersionController.php
@@ -49,7 +49,10 @@ public function testNotLoggedIn() {
$controller = new CheckVersionController(true);
$results = $controller->go();
- $this->assertPattern('/You must <a href="\/session\/login.php">log in<\/a> to do this/', $results);
+ $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'));
}
public function testLoggedin() {

0 comments on commit ba3eae7

Please sign in to comment.