diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2019-02-18 17:02:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-18 17:02:29 +0300 |
commit | 8d3fe62389469347f7ebc551ee36f4527655b804 (patch) | |
tree | beea4c5ba26e3969e47441f948c152b471bf20a9 /plugins/ScheduledReports | |
parent | 99d42f5b8ca81f5481635c0cbea794d4b7de783b (diff) |
Enable fingers crossed handler via INI config and show backtrace in logs/archive api output (#13923)
* Add config to use FringersCrossedHandler (untested)
* Get to work in different contexts.
* Add changelog note.
* Make sure more exceptions make it to the logs, make backtrace include previous exceptions, do not use screen writer if in cli mode, always print backtrace if in CLI mode and archivephp triggered.
* Add log capturing handler.
* Remove options from global.ini.php sibnce they may be temporary.
* Add UI test triggering an error w/ the screen handler.
* Add some more log statements, ignore logs in screen writer, replace part of message in ExceptionToTextProcessor instead of whole message.
* Add missing license.
* Update changelog, move new item to 3.9
* Fixing some integration tests.
* Fix another unit test.
* One more test fix.
* Try to get rid of xss testing warning.
* Try again to get rid of warning.
* Try again to get rid of warning.
* Try again to get rid of warning.
Diffstat (limited to 'plugins/ScheduledReports')
-rw-r--r-- | plugins/ScheduledReports/tests/Integration/ApiTest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/ScheduledReports/tests/Integration/ApiTest.php b/plugins/ScheduledReports/tests/Integration/ApiTest.php index fa7168c7e4..11ffcdba77 100644 --- a/plugins/ScheduledReports/tests/Integration/ApiTest.php +++ b/plugins/ScheduledReports/tests/Integration/ApiTest.php @@ -9,6 +9,7 @@ namespace Piwik\Plugins\ScheduledReports\tests; use Piwik\API\Proxy; +use Piwik\Container\StaticContainer; use Piwik\DataTable; use Piwik\Date; use Piwik\Plugins\MobileMessaging\API as APIMobileMessaging; @@ -460,7 +461,7 @@ class ApiTest extends IntegrationTestCase throw new \Exception("Unexpected method $className::$methodName."); } }); - Proxy::setSingletonInstance($mockProxy); + StaticContainer::getContainer()->set(Proxy::class, $mockProxy); $idReport = APIScheduledReports::getInstance()->addReport( 1, |