function LoggerChannelFactoryTest::testGet
Tests LoggerChannelFactory::get().
@covers ::get
      
    
File
- 
              core/
tests/ Drupal/ Tests/ Core/ Logger/ LoggerChannelFactoryTest.php, line 25  
Class
- LoggerChannelFactoryTest
 - @coversDefaultClass \Drupal\Core\Logger\LoggerChannelFactory[[api-linebreak]] @group Logger
 
Namespace
Drupal\Tests\Core\LoggerCode
public function testGet() : void {
  $factory = new LoggerChannelFactory($this->createMock(RequestStack::class), $this->createMock(AccountInterface::class));
  // Ensure that when called with the same argument, always the same instance
  // will be returned.
  $this->assertSame($factory->get('test'), $factory->get('test'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.