diff options
author | Joas Schilling <coding@schilljs.com> | 2017-01-09 10:55:40 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-01-09 10:55:40 +0100 |
commit | e7ff1ba548ad4f8661f8309157336d376d6fb937 (patch) | |
tree | 0f96132657dd7f5b0c0c65ed505026eaa78502c8 /tests | |
parent | 7573fa3148cf4ef99075e5373e40b776c0939f17 (diff) | |
download | nextcloud-server-e7ff1ba548ad4f8661f8309157336d376d6fb937.tar.gz nextcloud-server-e7ff1ba548ad4f8661f8309157336d376d6fb937.zip |
Add tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/LoggerTest.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/lib/LoggerTest.php b/tests/lib/LoggerTest.php index abb9deebd55..8bae8d18228 100644 --- a/tests/lib/LoggerTest.php +++ b/tests/lib/LoggerTest.php @@ -138,4 +138,20 @@ 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], + ]; + } + + /** + * @dataProvider dataGetLogClass + */ + public function testGetLogClass($type, $class) { + $this->assertEquals($class, Log::getLogClass($type)); + } } |