diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-09-13 21:09:05 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-09-13 21:09:05 +0200 |
commit | c80cc01afa315dcfa38b2a01c5b05d4516659c24 (patch) | |
tree | b6c51e22260584b2c340358d384bddf13b8c9418 /tests/Wallabag/ImportBundle/Import/WallabagV2ImportTest.php | |
parent | e01a3c98d6908e95121b5ade0161f40af1b05ca6 (diff) | |
download | wallabag-c80cc01afa315dcfa38b2a01c5b05d4516659c24.tar.gz wallabag-c80cc01afa315dcfa38b2a01c5b05d4516659c24.tar.zst wallabag-c80cc01afa315dcfa38b2a01c5b05d4516659c24.zip |
Change flash message for queued articles
Diffstat (limited to 'tests/Wallabag/ImportBundle/Import/WallabagV2ImportTest.php')
-rw-r--r-- | tests/Wallabag/ImportBundle/Import/WallabagV2ImportTest.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/Wallabag/ImportBundle/Import/WallabagV2ImportTest.php b/tests/Wallabag/ImportBundle/Import/WallabagV2ImportTest.php index 18998b35..b4017f72 100644 --- a/tests/Wallabag/ImportBundle/Import/WallabagV2ImportTest.php +++ b/tests/Wallabag/ImportBundle/Import/WallabagV2ImportTest.php | |||
@@ -78,7 +78,7 @@ class WallabagV2ImportTest extends \PHPUnit_Framework_TestCase | |||
78 | $res = $wallabagV2Import->import(); | 78 | $res = $wallabagV2Import->import(); |
79 | 79 | ||
80 | $this->assertTrue($res); | 80 | $this->assertTrue($res); |
81 | $this->assertEquals(['skipped' => 22, 'imported' => 2], $wallabagV2Import->getSummary()); | 81 | $this->assertEquals(['skipped' => 22, 'imported' => 2, 'queued' => 0], $wallabagV2Import->getSummary()); |
82 | } | 82 | } |
83 | 83 | ||
84 | public function testImportAndMarkAllAsRead() | 84 | public function testImportAndMarkAllAsRead() |
@@ -116,7 +116,7 @@ class WallabagV2ImportTest extends \PHPUnit_Framework_TestCase | |||
116 | 116 | ||
117 | $this->assertTrue($res); | 117 | $this->assertTrue($res); |
118 | 118 | ||
119 | $this->assertEquals(['skipped' => 0, 'imported' => 2], $wallabagV2Import->getSummary()); | 119 | $this->assertEquals(['skipped' => 0, 'imported' => 2, 'queued' => 0], $wallabagV2Import->getSummary()); |
120 | } | 120 | } |
121 | 121 | ||
122 | public function testImportWithRabbit() | 122 | public function testImportWithRabbit() |
@@ -152,7 +152,7 @@ class WallabagV2ImportTest extends \PHPUnit_Framework_TestCase | |||
152 | $res = $wallabagV2Import->setMarkAsRead(true)->import(); | 152 | $res = $wallabagV2Import->setMarkAsRead(true)->import(); |
153 | 153 | ||
154 | $this->assertTrue($res); | 154 | $this->assertTrue($res); |
155 | $this->assertEquals(['skipped' => 0, 'imported' => 24], $wallabagV2Import->getSummary()); | 155 | $this->assertEquals(['skipped' => 0, 'imported' => 0, 'queued' => 24], $wallabagV2Import->getSummary()); |
156 | } | 156 | } |
157 | 157 | ||
158 | public function testImportWithRedis() | 158 | public function testImportWithRedis() |
@@ -186,7 +186,7 @@ class WallabagV2ImportTest extends \PHPUnit_Framework_TestCase | |||
186 | $res = $wallabagV2Import->setMarkAsRead(true)->import(); | 186 | $res = $wallabagV2Import->setMarkAsRead(true)->import(); |
187 | 187 | ||
188 | $this->assertTrue($res); | 188 | $this->assertTrue($res); |
189 | $this->assertEquals(['skipped' => 0, 'imported' => 24], $wallabagV2Import->getSummary()); | 189 | $this->assertEquals(['skipped' => 0, 'imported' => 0, 'queued' => 24], $wallabagV2Import->getSummary()); |
190 | 190 | ||
191 | $this->assertNotEmpty($redisMock->lpop('wallabag_v2')); | 191 | $this->assertNotEmpty($redisMock->lpop('wallabag_v2')); |
192 | } | 192 | } |
@@ -227,7 +227,7 @@ class WallabagV2ImportTest extends \PHPUnit_Framework_TestCase | |||
227 | $res = $wallabagV2Import->import(); | 227 | $res = $wallabagV2Import->import(); |
228 | 228 | ||
229 | $this->assertFalse($res); | 229 | $this->assertFalse($res); |
230 | $this->assertEquals(['skipped' => 0, 'imported' => 0], $wallabagV2Import->getSummary()); | 230 | $this->assertEquals(['skipped' => 0, 'imported' => 0, 'queued' => 0], $wallabagV2Import->getSummary()); |
231 | } | 231 | } |
232 | 232 | ||
233 | public function testImportWithExceptionFromGraby() | 233 | public function testImportWithExceptionFromGraby() |
@@ -256,6 +256,6 @@ class WallabagV2ImportTest extends \PHPUnit_Framework_TestCase | |||
256 | $res = $wallabagV2Import->import(); | 256 | $res = $wallabagV2Import->import(); |
257 | 257 | ||
258 | $this->assertTrue($res); | 258 | $this->assertTrue($res); |
259 | $this->assertEquals(['skipped' => 24, 'imported' => 0], $wallabagV2Import->getSummary()); | 259 | $this->assertEquals(['skipped' => 24, 'imported' => 0, 'queued' => 0], $wallabagV2Import->getSummary()); |
260 | } | 260 | } |
261 | } | 261 | } |