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/Proxy/tests/Unit/ProxyTest.php')
-rw-r--r--plugins/Proxy/tests/Unit/ProxyTest.php48
1 files changed, 0 insertions, 48 deletions
diff --git a/plugins/Proxy/tests/Unit/ProxyTest.php b/plugins/Proxy/tests/Unit/ProxyTest.php
deleted file mode 100644
index e4db54b303..0000000000
--- a/plugins/Proxy/tests/Unit/ProxyTest.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-/**
- * Matomo - free/libre analytics platform
- *
- * @link https://matomo.org
- * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
- */
-
-namespace Piwik\Plugins\Proxy\tests\Unit;
-
-use Piwik\Plugins\Proxy\Controller;
-
-/**
- * @group Proxy
- * @group ProxyTest
- * @group Plugins
- */
-class ProxyTest extends \PHPUnit\Framework\TestCase
-{
- public function getAcceptableRemoteUrls()
- {
- return array(
- // piwik white list (and used in homepage)
- array('http://piwik.org/', true),
-
- array('http://piwik.org', true),
- array('http://qa.piwik.org/', true),
- array('http://forum.piwik.org/', true),
- array('http://dev.piwik.org/', true),
- array('http://demo.piwik.org/', true),
-
- // not in the piwik white list
- array('http://www.piwik.org/', false),
- array('https://piwik.org/', false),
- array('http://example.org/', false),
- );
- }
-
- /**
- * @dataProvider getAcceptableRemoteUrls
- * @group Plugins
- */
- public function testIsAcceptableRemoteUrl($url, $expected)
- {
- $this->assertEquals($expected, Controller::isPiwikUrl($url));
- }
-}
-