mirror of
https://github.com/e107inc/e107.git
synced 2025-07-13 02:56:28 +02:00
Revert last test as e107::redirect() will correct any entity detected.
This commit is contained in:
@ -793,22 +793,6 @@ class e107Test extends \Codeception\Test\Unit
|
|||||||
$this->assertEquals("https://localhost/e107/news", $result);
|
$this->assertEquals("https://localhost/e107/news", $result);
|
||||||
|
|
||||||
|
|
||||||
$obj::getPlugin()->install('forum');
|
|
||||||
$url = $obj::url('forum', 'topic', array(), array(
|
|
||||||
'query' => array(
|
|
||||||
'f' => 'post',
|
|
||||||
'id' => 123
|
|
||||||
),
|
|
||||||
'mode'=>'full' // suitable for URL redirect. eg. e107::redirect($url)
|
|
||||||
));
|
|
||||||
|
|
||||||
if(strpos($url,'http')!==0 || strpos($url, '&') !== false)
|
|
||||||
{
|
|
||||||
$this->fail("Generated 'full mode' URL contains ampersand entities or does not contain http");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user