summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2017-11-14 14:28:04 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2017-11-14 14:28:04 +0100
commitad757805ca3c6556dd912881d5469b97b1f66171 (patch)
treea24946c1eef99ed6ddf36293a4551e1710c95533 /tests/lib
parent2a39ac043e1bcb42111e7f442814d6f11522365b (diff)
downloadnextcloud-server-ad757805ca3c6556dd912881d5469b97b1f66171.tar.gz
nextcloud-server-ad757805ca3c6556dd912881d5469b97b1f66171.zip
Pass the exception context to the crash reporter
This should allow better reports as often the app id is passed as context. While this is not used right now, I'd like to have this for NC13 as adding it later will break the interface for existing apps Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/LoggerTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/LoggerTest.php b/tests/lib/LoggerTest.php
index 76f33849deb..54336da105c 100644
--- a/tests/lib/LoggerTest.php
+++ b/tests/lib/LoggerTest.php
@@ -90,7 +90,7 @@ class LoggerTest extends TestCase {
$e = new \Exception('test');
$this->registry->expects($this->once())
->method('delegateReport')
- ->with($e);
+ ->with($e, []);
$this->logger->logException($e);
@@ -109,7 +109,7 @@ class LoggerTest extends TestCase {
$e = new \Exception('test');
$this->registry->expects($this->once())
->method('delegateReport')
- ->with($e);
+ ->with($e, []);
$this->logger->logException($e);
@@ -128,7 +128,7 @@ class LoggerTest extends TestCase {
$e = new \Exception('test');
$this->registry->expects($this->once())
->method('delegateReport')
- ->with($e);
+ ->with($e, []);
$this->logger->logException($e);
@@ -147,7 +147,7 @@ class LoggerTest extends TestCase {
$e = new \Exception('test');
$this->registry->expects($this->once())
->method('delegateReport')
- ->with($e);
+ ->with($e, []);
$this->logger->logException($e);