]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Adding single quote anchor to parse_url unit test
authorJeff Tilson <jrtilson@gmail.com>
Mon, 29 Apr 2013 18:42:24 +0000 (14:42 -0400)
committerJeff Tilson <jrtilson@gmail.com>
Mon, 29 Apr 2013 18:42:24 +0000 (14:42 -0400)
engine/tests/regression/trac_bugs.php

index cb3f20421ce07998dc5672f773528b7ecbc8e1a6..b7654a7944863aaf2279929d87d2dcb66b9c2369 100644 (file)
@@ -282,8 +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>'
+
+                       'web archive anchor <a href="http://web.archive.org/web/20000229040250/http://www.google.com/">google</a>' =>
+                               'web archive anchor <a href="http://web.archive.org/web/20000229040250/http://www.google.com/">google</a>',
+
+                       'single quotes already anchor <a href=\'http://www.yahoo.com\'>yahoo</a>' => 
+                               'single quotes already anchor <a href=\'http://www.yahoo.com\'>yahoo</a>'
 
                );
                foreach ($cases as $input => $output) {