mirror of
https://github.com/e107inc/e107.git
synced 2025-07-09 17:16:20 +02:00
Fixed default siteurl value. Added test for e107::url()
This commit is contained in:
File diff suppressed because one or more lines are too long
@ -757,13 +757,20 @@
|
|||||||
$res = null;
|
$res = null;
|
||||||
$this->assertTrue($res);
|
$this->assertTrue($res);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
public function testUrl()
|
public function testUrl()
|
||||||
{
|
{
|
||||||
$res = null;
|
$obj = $this->e107;
|
||||||
$this->assertTrue($res);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
$result = $obj::url('news','index', array(), array('mode'=>'full'));
|
||||||
|
|
||||||
|
$this->assertEquals("https://localhost/e107/news", $result);
|
||||||
|
// var_dump(SITEURL);
|
||||||
|
|
||||||
|
|
||||||
|
// $this->assertTrue($res);
|
||||||
|
}
|
||||||
|
/*
|
||||||
public function testRedirect()
|
public function testRedirect()
|
||||||
{
|
{
|
||||||
$res = null;
|
$res = null;
|
||||||
|
Reference in New Issue
Block a user