]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Including internet archive url test in existing test_parse_url function
authorJeff Tilson <jrtilson@gmail.com>
Mon, 29 Apr 2013 18:06:18 +0000 (14:06 -0400)
committerJeff Tilson <jrtilson@gmail.com>
Mon, 29 Apr 2013 18:06:18 +0000 (14:06 -0400)
engine/tests/regression/trac_bugs.php

index b791dcad3c9fd1ac68431f7d2059141a4cf946f5..cb3f20421ce07998dc5672f773528b7ecbc8e1a6 100644 (file)
@@ -282,19 +282,12 @@ class ElggCoreRegressionBugsTest extends ElggCoreUnitTest {
                                'ssl <a href="https://example.org/" rel="nofollow">https:/<wbr />/<wbr />example.org/<wbr /></a> test',
                        'ftp ftp://example.org/ test' =>
                                'ftp <a href="ftp://example.org/" rel="nofollow">ftp:/<wbr />/<wbr />example.org/<wbr /></a> test',
+                       '<a href="http://web.archive.org/web/20000229040250/http://www.google.com/">google</a>' =>
+                               '<a href="http://web.archive.org/web/20000229040250/http://www.google.com/">google</a>'
 
                );
                foreach ($cases as $input => $output) {
                        $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));
-       }
 }