Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2020-01-16 03:26:34 +0300
committerThomas Steur <tsteur@users.noreply.github.com>2020-01-16 03:26:34 +0300
commit7c059ecb5e433dec3538398c8413c45cd68a0c0b (patch)
tree026af3bafbd20f69b1aca757151c1d51a3bdfcd6 /tests/PHPUnit/Integration
parent8e2db8e1206e6778f3198558b05c25d655fc99e6 (diff)
Removes some methods deprecated for Matomo 4 (#15386)
* Removes deprecated Plugin.getListHooksRegistered and uses Plugin.registerEvents instead * Removes deprecated method Piwik\Piwik::doAsSuperUser * Remove deprecated SettingsPiwik::isPiwikInstalled and use SettingsPiwik::isMatomoInstalled instead
Diffstat (limited to 'tests/PHPUnit/Integration')
-rw-r--r--tests/PHPUnit/Integration/Plugin/ManagerTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/PHPUnit/Integration/Plugin/ManagerTest.php b/tests/PHPUnit/Integration/Plugin/ManagerTest.php
index a8ab5c71b9..d785f0f176 100644
--- a/tests/PHPUnit/Integration/Plugin/ManagerTest.php
+++ b/tests/PHPUnit/Integration/Plugin/ManagerTest.php
@@ -91,7 +91,7 @@ class ManagerTest extends IntegrationTestCase
public function test_ListenNotToControllerMethodEventsThatDoesNotExists()
{
foreach ($this->manager->getLoadedPlugins() as $plugin) {
- $hooks = $plugin->getListHooksRegistered();
+ $hooks = $plugin->registerEvents();
foreach ($hooks as $hook => $callback) {
if (0 === strpos($hook, 'Controller.')) {
list($controller, $module, $action) = explode('.', $hook);