[TASK] Add tests for log `#[Channel(...)]` attribute
v11 introduced support for using a Channel attribute to define what log channel should be injected into a class, either via the constructor or the LoggingAwareInterface. However, the initial patch lacked any tests. This patch adds basic tests to verify that the attribute works, and indirectly document it. Resolves: #97695 Related: #95079 Related: #95044 Releases: main, 11.5 Change-Id: I7cc97fc839ccd4015ac20b1bce787d4cbbc40a26 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74750 Tested-by:core-ci <typo3@b13.com> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Stefan Bürk <stefan@buerk.tech>
Showing
- composer.json 2 additions, 1 deletioncomposer.json
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_logger/Classes/ConstructorAttributeChannelTester.php 33 additions, 0 deletions...test_logger/Classes/ConstructorAttributeChannelTester.php
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_logger/Classes/LoggerAwareClassAttributeChannelTester.php 33 additions, 0 deletions...logger/Classes/LoggerAwareClassAttributeChannelTester.php
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_logger/Configuration/Services.yaml 11 additions, 0 deletions...xtures/Extensions/test_logger/Configuration/Services.yaml
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_logger/ext_emconf.php 21 additions, 0 deletions...Functional/Fixtures/Extensions/test_logger/ext_emconf.php
- typo3/sysext/core/Tests/Functional/Fixtures/Log/DummyWriter.php 33 additions, 0 deletions...sysext/core/Tests/Functional/Fixtures/Log/DummyWriter.php
- typo3/sysext/core/Tests/Functional/Log/LoggerAwareChannelTest.php 88 additions, 0 deletions...sext/core/Tests/Functional/Log/LoggerAwareChannelTest.php
Please register or sign in to comment