1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-01 17:38:38 +00:00

Pass logger in constructor for importers

This commit is contained in:
Yassine Guedidi 2022-08-27 20:57:18 +02:00
parent 96c8cc25af
commit 51884911f5
10 changed files with 22 additions and 47 deletions

View file

@ -232,11 +232,10 @@ class ChromeImportTest extends TestCase
->expects($this->exactly($dispatched))
->method('dispatch');
$wallabag = new ChromeImport($this->em, $this->contentProxy, $this->tagsAssigner, $dispatcher);
$this->logHandler = new TestHandler();
$logger = new Logger('test', [$this->logHandler]);
$wallabag->setLogger($logger);
$wallabag = new ChromeImport($this->em, $this->contentProxy, $this->tagsAssigner, $dispatcher, $logger);
if (false === $unsetUser) {
$wallabag->setUser($this->user);