diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php b/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php index 3debc457..a60aec5b 100644 --- a/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php +++ b/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php | |||
@@ -808,7 +808,39 @@ class ContentProxyTest extends TestCase | |||
808 | 'https://example.org/hello', | 808 | 'https://example.org/hello', |
809 | null, | 809 | null, |
810 | 'example.org', | 810 | 'example.org', |
811 | ] | 811 | ], |
812 | 'different path and query string in fetch content' => [ | ||
813 | 'https://example.org/hello', | ||
814 | null, | ||
815 | 'https://example.org/world?foo', | ||
816 | 'https://example.org/world?foo', | ||
817 | 'https://example.org/hello', | ||
818 | 'example.org', | ||
819 | ], | ||
820 | 'feedproxy ignore list test' => [ | ||
821 | 'http://feedproxy.google.com/~r/Wallabag/~3/helloworld', | ||
822 | null, | ||
823 | 'https://example.org/hello-wallabag', | ||
824 | 'https://example.org/hello-wallabag', | ||
825 | null, | ||
826 | 'example.org', | ||
827 | ], | ||
828 | 'feedproxy ignore list test with origin url already set' => [ | ||
829 | 'http://feedproxy.google.com/~r/Wallabag/~3/helloworld', | ||
830 | 'https://example.org/this-is-source', | ||
831 | 'https://example.org/hello-wallabag', | ||
832 | 'https://example.org/hello-wallabag', | ||
833 | 'https://example.org/this-is-source', | ||
834 | 'example.org', | ||
835 | ], | ||
836 | 'lemonde ignore pattern test' => [ | ||
837 | 'http://www.lemonde.fr/tiny/url', | ||
838 | null, | ||
839 | 'http://example.com/hello-world', | ||
840 | 'http://example.com/hello-world', | ||
841 | null, | ||
842 | 'example.com', | ||
843 | ], | ||
812 | ]; | 844 | ]; |
813 | } | 845 | } |
814 | 846 | ||