more reliable self finding

This commit is contained in:
Shish 2009-07-15 23:29:01 +01:00
parent 46b0526496
commit dd650a6a4e

View File

@ -17,7 +17,9 @@ define('ADMIN_PASS', "demo");
class ShimmieWebTestCase extends WebTestCase {
protected function get_page($page) {
$this->get($_SERVER["HTTP_HOST"].'/'.make_link($page));
$url = "http://".$_SERVER["HTTP_HOST"].get_base_href().'/'.make_link($page);
$url = str_replace("/./", "/", $url);
$this->get($url);
}
protected function log_in_as_user() {
$this->get_page('post/list');