forked from wallabag/wallabag
Pass logger in constructor for importers
This commit is contained in:
@ -249,19 +249,19 @@ class WallabagV1ImportTest extends TestCase
|
||||
->expects($this->exactly($dispatched))
|
||||
->method('dispatch');
|
||||
|
||||
$this->logHandler = new TestHandler();
|
||||
$logger = new Logger('test', [$this->logHandler]);
|
||||
|
||||
$wallabag = new WallabagV1Import(
|
||||
$this->em,
|
||||
$this->contentProxy,
|
||||
$this->tagsAssigner,
|
||||
$dispatcher,
|
||||
$logger,
|
||||
$this->fetchingErrorMessageTitle,
|
||||
$this->fetchingErrorMessage
|
||||
);
|
||||
|
||||
$this->logHandler = new TestHandler();
|
||||
$logger = new Logger('test', [$this->logHandler]);
|
||||
$wallabag->setLogger($logger);
|
||||
|
||||
if (false === $unsetUser) {
|
||||
$wallabag->setUser($this->user);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user