X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FOStatus%2Ftests%2FFeedDiscoveryTest.php;h=28ac549c8983a87d6df7fda37484d052f2aa4098;hb=a0db913ea44c7b6edda06bd6bf1062dcad150270;hp=3be4bf736c704f2ab58c307f75c501e612fbc539;hpb=6c14235d6c3359a6c9012ec49077f8defe117779;p=quix0rs-gnu-social.git diff --git a/plugins/OStatus/tests/FeedDiscoveryTest.php b/plugins/OStatus/tests/FeedDiscoveryTest.php index 3be4bf736c..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'; @@ -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', ' ',