mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
Replace Wallabag v1 error strings with v2 strings
This commit is contained in:
parent
d0e9b3d640
commit
704803e182
3 changed files with 27 additions and 4 deletions
|
@ -19,6 +19,8 @@ class WallabagV1ImportTest extends \PHPUnit_Framework_TestCase
|
|||
protected $contentProxy;
|
||||
protected $tagsAssigner;
|
||||
protected $uow;
|
||||
protected $fetchingErrorMessageTitle = 'No title found';
|
||||
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>.';
|
||||
|
||||
private function getWallabagV1Import($unsetUser = false, $dispatched = 0)
|
||||
{
|
||||
|
@ -58,7 +60,14 @@ class WallabagV1ImportTest extends \PHPUnit_Framework_TestCase
|
|||
->expects($this->exactly($dispatched))
|
||||
->method('dispatch');
|
||||
|
||||
$wallabag = new WallabagV1Import($this->em, $this->contentProxy, $this->tagsAssigner, $dispatcher);
|
||||
$wallabag = new WallabagV1Import(
|
||||
$this->em,
|
||||
$this->contentProxy,
|
||||
$this->tagsAssigner,
|
||||
$dispatcher,
|
||||
$this->fetchingErrorMessageTitle,
|
||||
$this->fetchingErrorMessage
|
||||
);
|
||||
|
||||
$this->logHandler = new TestHandler();
|
||||
$logger = new Logger('test', [$this->logHandler]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue