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:
Diffstat (limited to 'plugins/UserCountry/tests/System/StaticAPITest.php')
-rw-r--r--plugins/UserCountry/tests/System/StaticAPITest.php49
1 files changed, 49 insertions, 0 deletions
diff --git a/plugins/UserCountry/tests/System/StaticAPITest.php b/plugins/UserCountry/tests/System/StaticAPITest.php
new file mode 100644
index 0000000000..9959c56e6d
--- /dev/null
+++ b/plugins/UserCountry/tests/System/StaticAPITest.php
@@ -0,0 +1,49 @@
+<?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\UserCountry\tests\System;
+
+use Piwik\Tests\Framework\TestCase\SystemTestCase;
+
+/**
+ * @group UserCountry
+ * @group ApiTest
+ * @group Plugins
+ */
+class StaticApiTest extends SystemTestCase
+{
+ /**
+ * @dataProvider getApiForTesting
+ */
+ public function testApi($api, $params)
+ {
+ $this->runApiTests($api, $params);
+ }
+
+ public function getApiForTesting()
+ {
+ $apiToTest = array();
+ $apiToTest[] = array(array('UserCountry.getCountryCodeMapping'),
+ array(
+ 'language' => 'en',
+ )
+ );
+
+ return $apiToTest;
+ }
+
+ public static function getOutputPrefix()
+ {
+ return '';
+ }
+
+ public static function getPathToTestDirectory()
+ {
+ return dirname(__FILE__);
+ }
+} \ No newline at end of file