diff options
author | Jerome Charaoui <jerome@riseup.net> | 2016-12-16 09:46:21 -0500 |
---|---|---|
committer | Jeremy Benoist <jbenoist@20minutes.fr> | 2017-06-01 09:48:14 +0200 |
commit | 704803e182068923eba16f3dc451e9231f15ecb5 (patch) | |
tree | 4f12c0a34fee66bd40170ae268d3741592eedd90 /tests | |
parent | d0e9b3d640acce49068d1a2c5603b92c1bda363e (diff) | |
download | wallabag-704803e182068923eba16f3dc451e9231f15ecb5.tar.gz wallabag-704803e182068923eba16f3dc451e9231f15ecb5.tar.zst wallabag-704803e182068923eba16f3dc451e9231f15ecb5.zip |
Replace Wallabag v1 error strings with v2 strings
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Wallabag/ImportBundle/Import/WallabagV1ImportTest.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/Wallabag/ImportBundle/Import/WallabagV1ImportTest.php b/tests/Wallabag/ImportBundle/Import/WallabagV1ImportTest.php index f23cb748..3b2375a1 100644 --- a/tests/Wallabag/ImportBundle/Import/WallabagV1ImportTest.php +++ b/tests/Wallabag/ImportBundle/Import/WallabagV1ImportTest.php | |||
@@ -19,6 +19,8 @@ class WallabagV1ImportTest extends \PHPUnit_Framework_TestCase | |||
19 | protected $contentProxy; | 19 | protected $contentProxy; |
20 | protected $tagsAssigner; | 20 | protected $tagsAssigner; |
21 | protected $uow; | 21 | protected $uow; |
22 | protected $fetchingErrorMessageTitle = 'No title found'; | ||
23 | protected $fetchingErrorMessage = 'wallabag can\'t retrieve contents for this article. Please <a href="http://doc.wallabag.org/en/master/user/errors_during_fetching.html#how-can-i-help-to-fix-that">troubleshoot this issue</a>.'; | ||
22 | 24 | ||
23 | private function getWallabagV1Import($unsetUser = false, $dispatched = 0) | 25 | private function getWallabagV1Import($unsetUser = false, $dispatched = 0) |
24 | { | 26 | { |
@@ -58,7 +60,14 @@ class WallabagV1ImportTest extends \PHPUnit_Framework_TestCase | |||
58 | ->expects($this->exactly($dispatched)) | 60 | ->expects($this->exactly($dispatched)) |
59 | ->method('dispatch'); | 61 | ->method('dispatch'); |
60 | 62 | ||
61 | $wallabag = new WallabagV1Import($this->em, $this->contentProxy, $this->tagsAssigner, $dispatcher); | 63 | $wallabag = new WallabagV1Import( |
64 | $this->em, | ||
65 | $this->contentProxy, | ||
66 | $this->tagsAssigner, | ||
67 | $dispatcher, | ||
68 | $this->fetchingErrorMessageTitle, | ||
69 | $this->fetchingErrorMessage | ||
70 | ); | ||
62 | 71 | ||
63 | $this->logHandler = new TestHandler(); | 72 | $this->logHandler = new TestHandler(); |
64 | $logger = new Logger('test', [$this->logHandler]); | 73 | $logger = new Logger('test', [$this->logHandler]); |