From b81a214ca823f7078c733828c4455843cf8598d9 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Thu, 4 Nov 2010 20:56:14 +0000 Subject: Fixes #2463: Added support for forwarding to root-level files, e.g. forward('install.php') git-svn-id: http://code.elgg.org/elgg/trunk@7238 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/tests/api/helpers.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'engine/tests/api') diff --git a/engine/tests/api/helpers.php b/engine/tests/api/helpers.php index 8dab74ff8..565cf054a 100644 --- a/engine/tests/api/helpers.php +++ b/engine/tests/api/helpers.php @@ -72,10 +72,19 @@ class ElggCoreHelpersTest extends ElggCoreUnitTest { 'http://example.com' => 'http://example.com', 'https://example.com' => 'https://example.com', '//example.com' => '//example.com', + 'example.com' => 'http://example.com', 'example.com/subpage' => 'http://example.com/subpage', + 'pg/page/handler' => elgg_get_site_url().'pg/page/handler', 'mod/plugin/file.php' => elgg_get_site_url().'mod/plugin/file.php', + 'rootfile.php' => elgg_get_site_url().'rootfile.php', + 'rootfile.php?setting=setting' => elgg_get_site_url().'rootfile.php?setting=setting', + + '/pg/page/handler' => elgg_get_site_url().'pg/page/handler', + '/mod/plugin/file.php' => elgg_get_site_url().'mod/plugin/file.php', + '/rootfile.php' => elgg_get_site_url().'rootfile.php', + '/rootfile.php?setting=setting' => elgg_get_site_url().'rootfile.php?setting=setting', ); foreach ($conversions as $input => $output) { -- cgit v1.2.3