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:
authordiosmosis <benaka@piwik.pro>2015-10-29 14:48:22 +0300
committerdiosmosis <benaka@piwik.pro>2015-10-29 14:48:22 +0300
commitf1dcc9bae62566c0df71bc7e447a9af8b092492f (patch)
tree3bd642634585fed27fcc0eea9cb1b73590d9cc08 /plugins/Overlay
parentcd9f9da2c76807d4e1748db08a0aebdedfab0cf7 (diff)
Instead of hardcoding whitelisting of Overlay methods in UI test URL normalizing, use DI to store whitelist and override in ui-test.php DI config for Overlay.
Diffstat (limited to 'plugins/Overlay')
-rw-r--r--plugins/Overlay/config/ui-test.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/Overlay/config/ui-test.php b/plugins/Overlay/config/ui-test.php
new file mode 100644
index 0000000000..28bce9a036
--- /dev/null
+++ b/plugins/Overlay/config/ui-test.php
@@ -0,0 +1,14 @@
+<?php
+
+return array(
+
+ // Overlay needs the full URLs in order to find the links in the embedded page (otherwise the %
+ // tooltips don't show up)
+ 'tests.ui.url_normalizer_whitelist.api' => DI\add(array(
+ 'Overlay.getFollowingPages',
+ )),
+ 'tests.ui.url_normalizer_whitelist.controller' => DI\add(array(
+ 'Overlay.renderSidebar',
+ )),
+
+); \ No newline at end of file