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@piwik.org>2018-05-22 19:56:38 +0300
committerdiosmosis <diosmosis@users.noreply.github.com>2018-05-22 19:56:38 +0300
commitcd37202646d9e710613a4a77fcaebe4f79e22d8f (patch)
tree8969c595bedd9d5585fa10603f2a69f00ba0efc1 /plugins/GeoIp2
parent8ecd0f1c9a116beaa4f646b692ade35913d8cd09 (diff)
Adds update script to remove GeoIP2 plugin from marketplace (#12897)
* Adds update script to remove GeoIP2 plugin from marketplace * improve check for case insensitive file system * Adds simple test to prove file used in update is present
Diffstat (limited to 'plugins/GeoIp2')
-rw-r--r--plugins/GeoIp2/tests/Integration/LocationProviderTest.php2
-rw-r--r--plugins/GeoIp2/tests/Integration/UpdateTest.php22
2 files changed, 23 insertions, 1 deletions
diff --git a/plugins/GeoIp2/tests/Integration/LocationProviderTest.php b/plugins/GeoIp2/tests/Integration/LocationProviderTest.php
index 38708b7850..fe7fb8b29c 100644
--- a/plugins/GeoIp2/tests/Integration/LocationProviderTest.php
+++ b/plugins/GeoIp2/tests/Integration/LocationProviderTest.php
@@ -11,7 +11,7 @@ namespace Piwik\Plugins\GeoIp2\tests\Integration;
use Piwik\Plugins\GeoIp2\LocationProvider\GeoIp2;
/**
- * @group GeoIp2x
+ * @group GeoIp2
*/
class ConvertRegionCodesToIsoTest extends \PHPUnit_Framework_TestCase
{
diff --git a/plugins/GeoIp2/tests/Integration/UpdateTest.php b/plugins/GeoIp2/tests/Integration/UpdateTest.php
new file mode 100644
index 0000000000..7f17364206
--- /dev/null
+++ b/plugins/GeoIp2/tests/Integration/UpdateTest.php
@@ -0,0 +1,22 @@
+<?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\GeoIp2\tests\Integration;
+
+/**
+ * @group GeoIp2
+ */
+class UpdateTest extends \PHPUnit_Framework_TestCase
+{
+ public function testEnsureFileForUpdateIsPresent()
+ {
+ // In update Updates_3_5_1_b1 the file `plugins/GeoIp2/data/isoRegionNames.php` is used to check file system
+ // case sensitivity. Therefor we need to ensure this file is present unless the update script isn't changed
+ $this->assertFileExists(PIWIK_INCLUDE_PATH . '/plugins/GeoIp2/data/isoRegionNames.php');
+ }
+} \ No newline at end of file