diff options
author | Thomas Citharel <tcit@tcit.fr> | 2016-04-18 22:13:48 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2016-04-18 22:13:48 +0200 |
commit | ca8d61b95879314e25aa87c11b5bbfd0df7adb91 (patch) | |
tree | 4f24f1a20f4eccddd8008faa351121c097848218 /src/Wallabag/ImportBundle/Tests/Import | |
parent | 23feba63bb22c240f22243738b1157f88041948a (diff) | |
parent | 23d24b17509ed3e8725bc911a8a2f8fe502e38f2 (diff) | |
download | wallabag-ca8d61b95879314e25aa87c11b5bbfd0df7adb91.tar.gz wallabag-ca8d61b95879314e25aa87c11b5bbfd0df7adb91.tar.zst wallabag-ca8d61b95879314e25aa87c11b5bbfd0df7adb91.zip |
Merge pull request #1942 from wallabag/optimize-import
Optimize import
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() |