diff options
author | Joas Schilling <coding@schilljs.com> | 2017-01-10 12:58:23 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-01-10 12:59:13 +0100 |
commit | 7fa063ceca5d78741c47f645c6dfdf65e4be7330 (patch) | |
tree | 6894dac927deab5158ca6bc31754ce57d53748d0 /tests/lib/LoggerTest.php | |
parent | e7ff1ba548ad4f8661f8309157336d376d6fb937 (diff) | |
download | nextcloud-server-7fa063ceca5d78741c47f645c6dfdf65e4be7330.tar.gz nextcloud-server-7fa063ceca5d78741c47f645c6dfdf65e4be7330.zip |
Better fallback for unknown log types
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/lib/LoggerTest.php')
-rw-r--r-- | tests/lib/LoggerTest.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/lib/LoggerTest.php b/tests/lib/LoggerTest.php index 8bae8d18228..da9cedc9f56 100644 --- a/tests/lib/LoggerTest.php +++ b/tests/lib/LoggerTest.php @@ -140,11 +140,13 @@ class LoggerTest extends TestCase { public function dataGetLogClass() { return [ - ['owncloud', \OC\Log\File::class], - ['nextcloud', \OC\Log\File::class], ['file', \OC\Log\File::class], ['errorlog', \OC\Log\Errorlog::class], ['syslog', \OC\Log\Syslog::class], + + ['owncloud', \OC\Log\File::class], + ['nextcloud', \OC\Log\File::class], + ['foobar', \OC\Log\File::class], ]; } |