make_http function

This commit is contained in:
Shish
2009-07-24 08:08:29 +01:00
parent 52ba270e78
commit ecef1edb14
3 changed files with 15 additions and 4 deletions

View File

@ -33,9 +33,7 @@ define('ADMIN_PASS', "demo");
*/
class SCoreWebTestCase extends WebTestCase {
protected function get_page($page) {
$url = "http://".$_SERVER["HTTP_HOST"].get_base_href().'/'.make_link($page);
$url = str_replace("/./", "/", $url);
$raw = $this->get($url);
$raw = $this->get(make_http(make_link($url)));
$this->assertNoText("Exception:");
$this->assertNoText("Error:");
$this->assertNoText("Warning:");