diff options
Diffstat (limited to 'tests/Wallabag')
-rw-r--r-- | tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php b/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php index c123e7e6..9ce72c79 100644 --- a/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php +++ b/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php | |||
@@ -232,14 +232,12 @@ class ContentProxyTest extends TestCase | |||
232 | 'html' => "<h1>Test</h1><p><img src='http://3.3.3.3/cover.jpg'/></p>", | 232 | 'html' => "<h1>Test</h1><p><img src='http://3.3.3.3/cover.jpg'/></p>", |
233 | 'title' => 'this is my title', | 233 | 'title' => 'this is my title', |
234 | 'url' => 'http://1.1.1.1', | 234 | 'url' => 'http://1.1.1.1', |
235 | 'content_type' => 'text/html', | 235 | 'headers' => [ |
236 | 'content-type' => 'text/html', | ||
237 | ], | ||
236 | 'language' => 'fr', | 238 | 'language' => 'fr', |
237 | 'status' => '200', | 239 | 'status' => '200', |
238 | 'open_graph' => [ | 240 | 'image' => null, |
239 | 'og_title' => 'my OG title', | ||
240 | 'og_description' => 'OG desc', | ||
241 | 'og_image' => null, | ||
242 | ], | ||
243 | ]); | 241 | ]); |
244 | 242 | ||
245 | $proxy = new ContentProxy($graby, $tagger, $this->getValidator(), $this->getLogger(), $this->fetchingErrorMessage); | 243 | $proxy = new ContentProxy($graby, $tagger, $this->getValidator(), $this->getLogger(), $this->fetchingErrorMessage); |
@@ -274,14 +272,12 @@ class ContentProxyTest extends TestCase | |||
274 | 'html' => "<h1>Test</h1><p><img src='http://3.3.3.3/nevermind.jpg'/></p>", | 272 | 'html' => "<h1>Test</h1><p><img src='http://3.3.3.3/nevermind.jpg'/></p>", |
275 | 'title' => 'this is my title', | 273 | 'title' => 'this is my title', |
276 | 'url' => 'http://1.1.1.1', | 274 | 'url' => 'http://1.1.1.1', |
277 | 'content_type' => 'text/html', | 275 | 'headers' => [ |
276 | 'content-type' => 'text/html', | ||
277 | ], | ||
278 | 'language' => 'fr', | 278 | 'language' => 'fr', |
279 | 'status' => '200', | 279 | 'status' => '200', |
280 | 'open_graph' => [ | 280 | 'image' => 'http://3.3.3.3/cover.jpg', |
281 | 'og_title' => 'my OG title', | ||
282 | 'og_description' => 'OG desc', | ||
283 | 'og_image' => 'http://3.3.3.3/cover.jpg', | ||
284 | ], | ||
285 | ]); | 281 | ]); |
286 | 282 | ||
287 | $proxy = new ContentProxy($graby, $tagger, $this->getValidator(), $this->getLogger(), $this->fetchingErrorMessage); | 283 | $proxy = new ContentProxy($graby, $tagger, $this->getValidator(), $this->getLogger(), $this->fetchingErrorMessage); |