3 namespace Drupal\Tests\Core\Logger;
5 use Drupal\Core\Logger\LoggerChannelFactory;
6 use Drupal\Tests\UnitTestCase;
9 * @coversDefaultClass \Drupal\Core\Logger\LoggerChannelFactory
12 class LoggerChannelFactoryTest extends UnitTestCase {
15 * Tests LoggerChannelFactory::get().
19 public function testGet() {
20 $factory = new LoggerChannelFactory();
21 $factory->setContainer($this->getMock('Symfony\Component\DependencyInjection\ContainerInterface'));
23 // Ensure that when called with the same argument, always the same instance
25 $this->assertSame($factory->get('test'), $factory->get('test'));