aboutsummaryrefslogtreecommitdiff
path: root/engine/tests
diff options
context:
space:
mode:
Diffstat (limited to 'engine/tests')
-rw-r--r--engine/tests/regression/trac_bugs.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/engine/tests/regression/trac_bugs.php b/engine/tests/regression/trac_bugs.php
index 4de9c306b..b791dcad3 100644
--- a/engine/tests/regression/trac_bugs.php
+++ b/engine/tests/regression/trac_bugs.php
@@ -288,4 +288,13 @@ class ElggCoreRegressionBugsTest extends ElggCoreUnitTest {
$this->assertEqual($output, parse_urls($input));
}
}
+
+ /**
+ * Test #2057 -- parse_urls()
+ * https://github.com/Elgg/Elgg/issues/2057
+ */
+ public function test_archive_url() {
+ $input = '<a href="http://web.archive.org/web/20000229040250/http://www.google.com/">google</a>';
+ $this->assertEqual($input, parse_urls($input));
+ }
}