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:
authorThomas Steur <thomas.steur@gmail.com>2016-03-10 00:55:45 +0300
committerThomas Steur <thomas.steur@gmail.com>2016-04-11 05:11:33 +0300
commitb52ae4e7e488e0474d67c54578e1d6c1aa066bff (patch)
treef94b02f774cbc24faaa18f29ee1e19fef8b338af /plugins/MobileAppMeasurable
parent6ba622a68a26792af8cc22131f488f7ff5189d2c (diff)
refs #7983 let plugins add or remove fields to websites and better settings api
Diffstat (limited to 'plugins/MobileAppMeasurable')
-rw-r--r--plugins/MobileAppMeasurable/Type.php1
-rw-r--r--plugins/MobileAppMeasurable/config/test.php7
-rw-r--r--plugins/MobileAppMeasurable/tests/Framework/Mock/Type.php29
3 files changed, 0 insertions, 37 deletions
diff --git a/plugins/MobileAppMeasurable/Type.php b/plugins/MobileAppMeasurable/Type.php
index 6a6fd64c58..34ff4335b5 100644
--- a/plugins/MobileAppMeasurable/Type.php
+++ b/plugins/MobileAppMeasurable/Type.php
@@ -16,6 +16,5 @@ class Type extends \Piwik\Measurable\Type
protected $description = 'MobileAppMeasurable_MobileAppDescription';
protected $howToSetupUrl = 'http://developer.piwik.org/guides/tracking-api-clients#mobile-sdks';
-
}
diff --git a/plugins/MobileAppMeasurable/config/test.php b/plugins/MobileAppMeasurable/config/test.php
deleted file mode 100644
index 08a3359557..0000000000
--- a/plugins/MobileAppMeasurable/config/test.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-return array(
-
- 'Piwik\Plugins\MobileAppMeasurable\Type' => DI\object('Piwik\Plugins\MobileAppMeasurable\tests\Framework\Mock\Type'),
-
-); \ No newline at end of file
diff --git a/plugins/MobileAppMeasurable/tests/Framework/Mock/Type.php b/plugins/MobileAppMeasurable/tests/Framework/Mock/Type.php
deleted file mode 100644
index c573f5b101..0000000000
--- a/plugins/MobileAppMeasurable/tests/Framework/Mock/Type.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-/**
-* Piwik - free/libre analytics platform
-*
-* @link http://piwik.org
-* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
-*/
-
-namespace Piwik\Plugins\MobileAppMeasurable\tests\Framework\Mock;
-
-use Piwik\Measurable\MeasurableSetting;
-use Piwik\Measurable\MeasurableSettings;
-use Piwik\Tracker;
-
-class Type extends \Piwik\Plugins\MobileAppMeasurable\Type
-{
-
- public function configureMeasurableSettings(MeasurableSettings $settings)
- {
- $appId = new MeasurableSetting('app_id', 'App-ID');
- $appId->validate = function ($value) {
- if (strlen($value) > 100) {
- throw new \Exception('Only 100 characters are allowed');
- }
- };
-
- $settings->addSetting($appId);
- }
-}