aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle/Tests/Import/WallabagV1ImportTest.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/WallabagV1ImportTest.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/WallabagV1ImportTest.php')
-rw-r--r--src/Wallabag/ImportBundle/Tests/Import/WallabagV1ImportTest.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Wallabag/ImportBundle/Tests/Import/WallabagV1ImportTest.php b/src/Wallabag/ImportBundle/Tests/Import/WallabagV1ImportTest.php
index 1cb5a233..78cc19b6 100644
--- a/src/Wallabag/ImportBundle/Tests/Import/WallabagV1ImportTest.php
+++ b/src/Wallabag/ImportBundle/Tests/Import/WallabagV1ImportTest.php
@@ -12,6 +12,8 @@ class WallabagV1ImportTest 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;
16
15 17
16 private function getWallabagV1Import($unsetUser = false) 18 private function getWallabagV1Import($unsetUser = false)
17 { 19 {
@@ -21,7 +23,11 @@ class WallabagV1ImportTest extends \PHPUnit_Framework_TestCase
21 ->disableOriginalConstructor() 23 ->disableOriginalConstructor()
22 ->getMock(); 24 ->getMock();
23 25
24 $wallabag = new WallabagV1Import($this->em); 26 $this->contentProxy = $this->getMockBuilder('Wallabag\CoreBundle\Helper\ContentProxy')
27 ->disableOriginalConstructor()
28 ->getMock();
29
30 $wallabag = new WallabagV1Import($this->em,$this->contentProxy);
25 31
26 $this->logHandler = new TestHandler(); 32 $this->logHandler = new TestHandler();
27 $logger = new Logger('test', array($this->logHandler)); 33 $logger = new Logger('test', array($this->logHandler));