public function LoggerChannelFactoryTest::testGet in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Logger/LoggerChannelFactoryTest.php \Drupal\Tests\Core\Logger\LoggerChannelFactoryTest::testGet()
- 9 core/tests/Drupal/Tests/Core/Logger/LoggerChannelFactoryTest.php \Drupal\Tests\Core\Logger\LoggerChannelFactoryTest::testGet()
Tests LoggerChannelFactory::get().
@covers ::get
File
- core/
tests/ Drupal/ Tests/ Core/ Logger/ LoggerChannelFactoryTest.php, line 19
Class
- LoggerChannelFactoryTest
- @coversDefaultClass \Drupal\Core\Logger\LoggerChannelFactory @group Logger
Namespace
Drupal\Tests\Core\LoggerCode
public function testGet() {
$factory = new LoggerChannelFactory();
$factory
->setContainer($this
->createMock('Symfony\\Component\\DependencyInjection\\ContainerInterface'));
// Ensure that when called with the same argument, always the same instance
// will be returned.
$this
->assertSame($factory
->get('test'), $factory
->get('test'));
}