more reliable self finding
This commit is contained in:
parent
46b0526496
commit
dd650a6a4e
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user