diff options
Diffstat (limited to 'src/Wallabag/ImportBundle/Tests/Import/WallabagV2ImportTest.php')
-rw-r--r-- | src/Wallabag/ImportBundle/Tests/Import/WallabagV2ImportTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/ImportBundle/Tests/Import/WallabagV2ImportTest.php b/src/Wallabag/ImportBundle/Tests/Import/WallabagV2ImportTest.php index ebabb8f7..3268cd3e 100644 --- a/src/Wallabag/ImportBundle/Tests/Import/WallabagV2ImportTest.php +++ b/src/Wallabag/ImportBundle/Tests/Import/WallabagV2ImportTest.php | |||
@@ -57,7 +57,7 @@ class WallabagV2ImportTest extends \PHPUnit_Framework_TestCase | |||
57 | ->disableOriginalConstructor() | 57 | ->disableOriginalConstructor() |
58 | ->getMock(); | 58 | ->getMock(); |
59 | 59 | ||
60 | $entryRepo->expects($this->exactly(2)) | 60 | $entryRepo->expects($this->exactly(3)) |
61 | ->method('findByUrlAndUserId') | 61 | ->method('findByUrlAndUserId') |
62 | ->will($this->onConsecutiveCalls(false, true, false)); | 62 | ->will($this->onConsecutiveCalls(false, true, false)); |
63 | 63 | ||
@@ -69,7 +69,7 @@ class WallabagV2ImportTest extends \PHPUnit_Framework_TestCase | |||
69 | $res = $wallabagV2Import->import(); | 69 | $res = $wallabagV2Import->import(); |
70 | 70 | ||
71 | $this->assertTrue($res); | 71 | $this->assertTrue($res); |
72 | $this->assertEquals(['skipped' => 1, 'imported' => 1], $wallabagV2Import->getSummary()); | 72 | $this->assertEquals(['skipped' => 1, 'imported' => 2], $wallabagV2Import->getSummary()); |
73 | } | 73 | } |
74 | 74 | ||
75 | public function testImportBadFile() | 75 | public function testImportBadFile() |