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:
authorsgiehl <stefangiehl@gmail.com>2012-10-19 21:47:37 +0400
committersgiehl <stefangiehl@gmail.com>2012-10-19 21:47:37 +0400
commit5762ad9e177d844593032133c99881417f56de5b (patch)
tree81bc88f1f37699f828bf38a15e66e7d3f9f9aa14 /plugins/Proxy
parent389c28f97b53cd37d0719366aaa3ada479d7c053 (diff)
refs #3227 removing plugin simple tests
git-svn-id: http://dev.piwik.org/svn/trunk@7240 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/Proxy')
-rw-r--r--plugins/Proxy/tests/Proxy.test.php36
1 files changed, 0 insertions, 36 deletions
diff --git a/plugins/Proxy/tests/Proxy.test.php b/plugins/Proxy/tests/Proxy.test.php
deleted file mode 100644
index d84e15a4d0..0000000000
--- a/plugins/Proxy/tests/Proxy.test.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-if(!defined('PIWIK_CONFIG_TEST_INCLUDED'))
-{
- require_once dirname(__FILE__)."/../../../tests/config_test.php";
-}
-
-class Test_Piwik_Proxy extends UnitTestCase
-{
- public function test_isAcceptableRemoteUrl()
- {
- Piwik::createConfigObject();
- Piwik_Config::getInstance()->setTestEnvironment();
-
- $data = array(
- // piwik white list (and used in homepage)
- 'http://piwik.org/' => array(true),
-
- 'http://piwik.org' => array(true),
- 'http://qa.piwik.org/' => array(true),
- 'http://forum.piwik.org/' => array(true),
- 'http://dev.piwik.org/' => array(true),
- 'http://demo.piwik.org/' => array(true),
-
- // not in the piwik white list
- 'http://www.piwik.org/' => array(false),
- 'https://piwik.org/' => array(false),
- 'http://example.org/' => array(false),
- );
-
- foreach($data as $url => $expected)
- {
- $this->assertEqual(Piwik_Proxy_Controller::isPiwikUrl($url), $expected[0], $url);
- }
- }
-}
-