More updates to stop using dev or alpha or beta versions.
[yaffs-website] / web / core / tests / Drupal / Tests / Core / Logger / LoggerChannelFactoryTest.php
1 <?php
2
3 namespace Drupal\Tests\Core\Logger;
4
5 use Drupal\Core\Logger\LoggerChannelFactory;
6 use Drupal\Tests\UnitTestCase;
7
8 /**
9  * @coversDefaultClass \Drupal\Core\Logger\LoggerChannelFactory
10  * @group Logger
11  */
12 class LoggerChannelFactoryTest extends UnitTestCase {
13
14   /**
15    * Tests LoggerChannelFactory::get().
16    *
17    * @covers ::get
18    */
19   public function testGet() {
20     $factory = new LoggerChannelFactory();
21     $factory->setContainer($this->getMock('Symfony\Component\DependencyInjection\ContainerInterface'));
22
23     // Ensure that when called with the same argument, always the same instance
24     // will be returned.
25     $this->assertSame($factory->get('test'), $factory->get('test'));
26   }
27
28 }