From 81db4aaa810b2b3261bb1b846893081fb11214ef Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaime=20Pe=CC=81rez=20Crespo?= <jaime.perez@uninett.no>
Date: Tue, 2 Oct 2018 10:50:38 +0200
Subject: [PATCH] Remove redundant test.
---
tests/lib/SimpleSAML/ConfigurationTest.php | 41 ----------------------
1 file changed, 41 deletions(-)
diff --git a/tests/lib/SimpleSAML/ConfigurationTest.php b/tests/lib/SimpleSAML/ConfigurationTest.php
index ea421b952..7df691741 100644
--- a/tests/lib/SimpleSAML/ConfigurationTest.php
+++ b/tests/lib/SimpleSAML/ConfigurationTest.php
@@ -109,47 +109,6 @@ class Test_Configuration extends SimpleSAML\Test\Utils\ClearStateTestCase
$this->assertEquals($c->hasValueOneOf(array('missing', 'exists_true')), true);
}
- /**
- * Test \SimpleSAML\Configuration::getBaseURL()
- */
- public function testGetBaseURL()
- {
- // Need to set a default configuration because the SSP Logger attempts to use it.
- Configuration::loadFromArray(array(), '[ARRAY]', 'simplesaml');
- $c = Configuration::loadFromArray(array());
- $this->assertEquals($c->getBaseURL(), 'simplesaml/');
-
- $c = Configuration::loadFromArray(array('baseurlpath' => 'simplesaml/'));
- $this->assertEquals($c->getBaseURL(), 'simplesaml/');
-
- $c = Configuration::loadFromArray(array('baseurlpath' => '/simplesaml/'));
- $this->assertEquals($c->getBaseURL(), 'simplesaml/');
-
- $c = Configuration::loadFromArray(array('baseurlpath' => 'path/to/simplesaml/'));
- $this->assertEquals($c->getBaseURL(), 'path/to/simplesaml/');
-
- $c = Configuration::loadFromArray(array('baseurlpath' => '/path/to/simplesaml/'));
- $this->assertEquals($c->getBaseURL(), 'path/to/simplesaml/');
-
- $c = Configuration::loadFromArray(array('baseurlpath' => 'https://example.org/ssp/'));
- $this->assertEquals($c->getBaseURL(), 'ssp/');
-
- $c = Configuration::loadFromArray(array('baseurlpath' => 'https://example.org/'));
- $this->assertEquals($c->getBaseURL(), '');
-
- $c = Configuration::loadFromArray(array('baseurlpath' => 'http://example.org/ssp/'));
- $this->assertEquals($c->getBaseURL(), 'ssp/');
-
- $c = Configuration::loadFromArray(array('baseurlpath' => ''));
- $this->assertEquals($c->getBaseURL(), '');
-
- $c = Configuration::loadFromArray(array('baseurlpath' => '/'));
- $this->assertEquals($c->getBaseURL(), '');
-
- $c = Configuration::loadFromArray(array('baseurlpath' => 'simplesaml'));
- $this->assertEquals($c->getBaseURL(), 'simplesaml/');
- }
-
/**
* Test \SimpleSAML\Configuration::getBasePath()
*/
--
GitLab