LoggerChannelFactoryTest.php in Drupal 9
File
core/tests/Drupal/Tests/Core/Logger/LoggerChannelFactoryTest.php
View source
<?php
namespace Drupal\Tests\Core\Logger;
use Drupal\Core\Logger\LoggerChannelFactory;
use Drupal\Tests\UnitTestCase;
class LoggerChannelFactoryTest extends UnitTestCase {
public function testGet() {
$factory = new LoggerChannelFactory();
$factory
->setContainer($this
->createMock('Symfony\\Component\\DependencyInjection\\ContainerInterface'));
$this
->assertSame($factory
->get('test'), $factory
->get('test'));
}
}