]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php
Add disableContentUpdate import option
[github/wallabag/wallabag.git] / tests / Wallabag / CoreBundle / Helper / ContentProxyTest.php
index 16643938715d62b5d1b9346e28e284c6e4f690d9..1ad21d147103d326f22c240fe4f252a848afe507 100644 (file)
@@ -257,9 +257,8 @@ class ContentProxyTest extends \PHPUnit_Framework_TestCase
 
         $proxy = new ContentProxy((new Graby()), $tagger, $this->getLogger(), $this->fetchingErrorMessage);
         $entry = new Entry(new User());
-        $proxy->updateEntry(
+        $proxy->importEntry(
             $entry,
-            'http://0.0.0.0',
             [
                 'html' => str_repeat('this is my content', 325),
                 'title' => 'this is my title',
@@ -294,7 +293,6 @@ class ContentProxyTest extends \PHPUnit_Framework_TestCase
         $entry = new Entry(new User());
         $proxy->updateEntry(
             $entry,
-            'http://0.0.0.0',
             [
                 'html' => str_repeat('this is my content', 325),
                 'title' => 'this is my title',
@@ -334,13 +332,14 @@ class ContentProxyTest extends \PHPUnit_Framework_TestCase
         $proxy = new ContentProxy($graby, $tagger, $this->getLogger(), $this->fetchingErrorMessage);
 
         $entry = new Entry(new User());
-        $proxy->updateEntry($entry, 'http://0.0.0.0', [
+        $content = array(
             'html' => str_repeat('this is my content', 325),
             'title' => 'this is my title',
             'url' => 'http://1.1.1.1',
             'content_type' => 'text/html',
             'language' => 'fr',
-        ]);
+        );
+        $proxy->importEntry($entry, $content, true);
 
         $this->assertCount(0, $entry->getTags());
     }