From 15e76c84d1f817a26bbfd22e20603a8760ae0435 Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 14 Jan 2020 13:57:33 -0800 Subject: [PATCH] Revert last test as e107::redirect() will correct any entity detected. --- e107_tests/tests/unit/e107Test.php | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/e107_tests/tests/unit/e107Test.php b/e107_tests/tests/unit/e107Test.php index 48ed90d9d..f055d74f4 100644 --- a/e107_tests/tests/unit/e107Test.php +++ b/e107_tests/tests/unit/e107Test.php @@ -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"); - } - - + }