1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-12 18:46:20 +02:00

Revert last test as e107::redirect() will correct any entity detected.

This commit is contained in:
Cameron
2020-01-14 13:57:33 -08:00
parent 4aa5ac8622
commit 15e76c84d1

View File

@ -791,23 +791,7 @@ class e107Test extends \Codeception\Test\Unit
$result = $obj::url('news','index', array(), array('mode'=>'full'));
$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");
}
}