diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-04-18 15:29:57 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-04-18 15:29:57 +0200 |
commit | 23d24b17509ed3e8725bc911a8a2f8fe502e38f2 (patch) | |
tree | 3850b185d44a67e002837eed68def02a129695a3 /src/Wallabag/ImportBundle/Tests/Import | |
parent | dc12084d933dc4981a6ff489622845053d4914b3 (diff) | |
download | wallabag-23d24b17509ed3e8725bc911a8a2f8fe502e38f2.tar.gz wallabag-23d24b17509ed3e8725bc911a8a2f8fe502e38f2.tar.zst wallabag-23d24b17509ed3e8725bc911a8a2f8fe502e38f2.zip |
Add tests
Diffstat (limited to 'src/Wallabag/ImportBundle/Tests/Import')
-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 b0667c9a..e287d8e2 100644 --- a/src/Wallabag/ImportBundle/Tests/Import/WallabagV2ImportTest.php +++ b/src/Wallabag/ImportBundle/Tests/Import/WallabagV2ImportTest.php | |||
@@ -58,7 +58,7 @@ class WallabagV2ImportTest extends \PHPUnit_Framework_TestCase | |||
58 | ->disableOriginalConstructor() | 58 | ->disableOriginalConstructor() |
59 | ->getMock(); | 59 | ->getMock(); |
60 | 60 | ||
61 | $entryRepo->expects($this->exactly(3)) | 61 | $entryRepo->expects($this->exactly(24)) |
62 | ->method('findByUrlAndUserId') | 62 | ->method('findByUrlAndUserId') |
63 | ->will($this->onConsecutiveCalls(false, true, false)); | 63 | ->will($this->onConsecutiveCalls(false, true, false)); |
64 | 64 | ||
@@ -75,7 +75,7 @@ class WallabagV2ImportTest extends \PHPUnit_Framework_TestCase | |||
75 | $res = $wallabagV2Import->import(); | 75 | $res = $wallabagV2Import->import(); |
76 | 76 | ||
77 | $this->assertTrue($res); | 77 | $this->assertTrue($res); |
78 | $this->assertEquals(['skipped' => 1, 'imported' => 2], $wallabagV2Import->getSummary()); | 78 | $this->assertEquals(['skipped' => 22, 'imported' => 2], $wallabagV2Import->getSummary()); |
79 | } | 79 | } |
80 | 80 | ||
81 | public function testImportAndMarkAllAsRead() | 81 | public function testImportAndMarkAllAsRead() |