aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle/Tests/Import/WallabagV2ImportTest.php
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2016-02-11 13:27:17 +0100
committerThomas Citharel <tcit@tcit.fr>2016-02-11 13:27:17 +0100
commit0783c99a196d1626d91119f715285150662fbe6e (patch)
treea8d992d43cba099ec7f26e52f2009a00be7367f8 /src/Wallabag/ImportBundle/Tests/Import/WallabagV2ImportTest.php
parentae5b37ef2e52c06182bc6edb14f6b3aae381ddb4 (diff)
downloadwallabag-0783c99a196d1626d91119f715285150662fbe6e.tar.gz
wallabag-0783c99a196d1626d91119f715285150662fbe6e.tar.zst
wallabag-0783c99a196d1626d91119f715285150662fbe6e.zip
reimport v1 entries if they were not fetched
Diffstat (limited to 'src/Wallabag/ImportBundle/Tests/Import/WallabagV2ImportTest.php')
-rw-r--r--src/Wallabag/ImportBundle/Tests/Import/WallabagV2ImportTest.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Wallabag/ImportBundle/Tests/Import/WallabagV2ImportTest.php b/src/Wallabag/ImportBundle/Tests/Import/WallabagV2ImportTest.php
index 4ebe93bf..0b33afb6 100644
--- a/src/Wallabag/ImportBundle/Tests/Import/WallabagV2ImportTest.php
+++ b/src/Wallabag/ImportBundle/Tests/Import/WallabagV2ImportTest.php
@@ -12,6 +12,7 @@ class WallabagV2ImportTest extends \PHPUnit_Framework_TestCase
12 protected $user; 12 protected $user;
13 protected $em; 13 protected $em;
14 protected $logHandler; 14 protected $logHandler;
15 protected $contentProxy;
15 16
16 private function getWallabagV2Import($unsetUser = false) 17 private function getWallabagV2Import($unsetUser = false)
17 { 18 {
@@ -21,7 +22,11 @@ class WallabagV2ImportTest extends \PHPUnit_Framework_TestCase
21 ->disableOriginalConstructor() 22 ->disableOriginalConstructor()
22 ->getMock(); 23 ->getMock();
23 24
24 $wallabag = new WallabagV2Import($this->em); 25 $this->contentProxy = $this->getMockBuilder('Wallabag\CoreBundle\Helper\ContentProxy')
26 ->disableOriginalConstructor()
27 ->getMock();
28
29 $wallabag = new WallabagV2Import($this->em,$this->contentProxy);
25 30
26 $this->logHandler = new TestHandler(); 31 $this->logHandler = new TestHandler();
27 $logger = new Logger('test', array($this->logHandler)); 32 $logger = new Logger('test', array($this->logHandler));