]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/ImportBundle/Tests/Import/WallabagV2ImportTest.php
Add tests
[github/wallabag/wallabag.git] / src / Wallabag / ImportBundle / Tests / Import / WallabagV2ImportTest.php
index b0667c9ae063b8d323c3012bfbe61de9ef5f5a47..e287d8e20ea01fb3eb97c9e61c677c1dd4e12568 100644 (file)
@@ -58,7 +58,7 @@ class WallabagV2ImportTest extends \PHPUnit_Framework_TestCase
             ->disableOriginalConstructor()
             ->getMock();
 
-        $entryRepo->expects($this->exactly(3))
+        $entryRepo->expects($this->exactly(24))
             ->method('findByUrlAndUserId')
             ->will($this->onConsecutiveCalls(false, true, false));
 
@@ -75,7 +75,7 @@ class WallabagV2ImportTest extends \PHPUnit_Framework_TestCase
         $res = $wallabagV2Import->import();
 
         $this->assertTrue($res);
-        $this->assertEquals(['skipped' => 1, 'imported' => 2], $wallabagV2Import->getSummary());
+        $this->assertEquals(['skipped' => 22, 'imported' => 2], $wallabagV2Import->getSummary());
     }
 
     public function testImportAndMarkAllAsRead()