diff options
author | Thomas Citharel <tcit@tcit.fr> | 2016-02-11 15:48:20 +0100 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2016-02-11 15:48:20 +0100 |
commit | eaf9dad777e84d50e8b3e5877b05605ad9138fee (patch) | |
tree | 69b41409e9d39d7718fc9c8fb8409ab599387be1 /src/Wallabag/ImportBundle/Tests/Import/WallabagV2ImportTest.php | |
parent | da0a9e01e9b6ef52656aa47367bfc30b1905fe40 (diff) | |
download | wallabag-eaf9dad777e84d50e8b3e5877b05605ad9138fee.tar.gz wallabag-eaf9dad777e84d50e8b3e5877b05605ad9138fee.tar.zst wallabag-eaf9dad777e84d50e8b3e5877b05605ad9138fee.zip |
add tests
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() |