Add plugins version to logs

[MAILPOET-4735]
This commit is contained in:
Pavel Dohnal
2022-11-23 11:34:40 +01:00
committed by Veljko V
parent 02b82c04f3
commit fd1331e602
3 changed files with 18 additions and 2 deletions

View File

@@ -39,13 +39,13 @@ class LoggerFactoryTest extends \MailPoetUnitTest {
public function testItAttachesProcessors() {
$logger1 = $this->loggerFactory->getLogger('logger-with-processors', true);
$processors = $logger1->getProcessors();
expect($processors)->notEmpty();
expect(count($processors))->greaterThan(1);
}
public function testItDoesNotAttachProcessors() {
$logger1 = $this->loggerFactory->getLogger('logger-without-processors', false);
$processors = $logger1->getProcessors();
expect($processors)->isEmpty();
expect($processors)->count(1);
}
public function testItAttachesHandler() {