summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-06-29 11:43:32 +0200
committerJoas Schilling <coding@schilljs.com>2017-06-29 17:20:10 +0200
commitb27819785e32be24f289958efda79dec6358da00 (patch)
treec811068bdf65550d74b53be0ef80a19693f9f146 /apps/dav/tests/unit
parent045d04332e00acbe28adbad54e4b9c5ce8486d38 (diff)
downloadnextcloud-server-b27819785e32be24f289958efda79dec6358da00.tar.gz
nextcloud-server-b27819785e32be24f289958efda79dec6358da00.zip
Don't log passwords on dav exceptions
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/dav/tests/unit')
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/ExceptionLoggerPluginTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/dav/tests/unit/Connector/Sabre/ExceptionLoggerPluginTest.php b/apps/dav/tests/unit/Connector/Sabre/ExceptionLoggerPluginTest.php
index 8088ee6dc4d..85ede2ad681 100644
--- a/apps/dav/tests/unit/Connector/Sabre/ExceptionLoggerPluginTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/ExceptionLoggerPluginTest.php
@@ -71,13 +71,13 @@ class ExceptionLoggerPluginTest extends TestCase {
$this->plugin->logException($exception);
$this->assertEquals($expectedLogLevel, $this->logger->level);
- $this->assertStringStartsWith('Exception: {"Message":"' . $expectedMessage, $this->logger->message);
+ $this->assertStringStartsWith('Exception: {"Exception":' . json_encode(get_class($exception)) . ',"Message":"' . $expectedMessage . '",', $this->logger->message);
}
public function providesExceptions() {
return [
- [0, 'HTTP\/1.1 404 Not Found', new NotFound()],
- [4, 'HTTP\/1.1 400 This path leads to nowhere', new InvalidPath('This path leads to nowhere')]
+ [0, '', new NotFound()],
+ [4, 'This path leads to nowhere', new InvalidPath('This path leads to nowhere')]
];
}