We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e86e8ce commit 6284ef1Copy full SHA for 6284ef1
tests/Log/LogManagerTest.php
@@ -31,6 +31,20 @@ public function testLogManagerCachesLoggerInstances()
31
$this->assertSame($logger1, $logger2);
32
}
33
34
+ public function testLogManagerGetDefaultDriver()
35
+ {
36
+ $config = $this->app['config'];
37
+ $config->set('logging.default', 'single');
38
+
39
+ $manager = new LogManager($this->app);
40
+ $this->assertEmpty($manager->getChannels());
41
42
+ //we don't specify any channel name
43
+ $manager->channel();
44
+ $this->assertCount(1, $manager->getChannels());
45
+ $this->assertEquals('single', $manager->getDefaultDriver());
46
+ }
47
48
public function testStackChannel()
49
{
50
$config = $this->app['config'];
0 commit comments