X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FOStatus%2Ftests%2FFeedDiscoveryTest.php;h=28ac549c8983a87d6df7fda37484d052f2aa4098;hb=a0db913ea44c7b6edda06bd6bf1062dcad150270;hp=0e6354a867ed63056ff6ae4d1862574754bdde8b;hpb=718317542940a8976f2c6f2a9ea09a04f2f00ca6;p=quix0rs-gnu-social.git diff --git a/plugins/OStatus/tests/FeedDiscoveryTest.php b/plugins/OStatus/tests/FeedDiscoveryTest.php index 0e6354a867..28ac549c89 100644 --- a/plugins/OStatus/tests/FeedDiscoveryTest.php +++ b/plugins/OStatus/tests/FeedDiscoveryTest.php @@ -6,8 +6,8 @@ if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) { } define('INSTALLDIR', realpath(dirname(__FILE__) . '/../../..')); -define('STATUSNET', true); -define('LACONICA', true); +define('GNUSOCIAL', true); +define('STATUSNET', true); // compatibility require_once INSTALLDIR . '/lib/common.php'; require_once INSTALLDIR . '/plugins/OStatus/lib/feeddiscovery.php'; @@ -53,7 +53,7 @@ class FeedDiscoveryTest extends PHPUnit_Framework_TestCase - + @@ -75,9 +75,10 @@ END; '
',
                            'http://example.com/feed/rss'),
+                     // This one can't resolve correctly; relative link is bogus.
                      array('http://example.com/relative/link3',
                            '',
-                           'http://example.com/feed/rss'),
+                           'http:/feed/rss'),
                      array('http://example.com/base/link1',
                            '',
                            'http://target.example.com/feed/rss'),
                      array('http://example.com/base/link2',
                            '',
                            'http://target.example.com/feed/rss'),
+                     // This one can't resolve; relative link is bogus.
                      array('http://example.com/base/link3',
                            '',
-                           'http://target.example.com/feed/rss'),
+                           'http:/feed/rss'),
                      // Trick question! There's a  but no href on it
                      array('http://example.com/relative/fauxbase',
                            '',