Skip to content
Snippets Groups Projects
Unverified Commit 81db4aaa authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Remove redundant test.

parent 46cb12c8
No related branches found
No related tags found
No related merge requests found
...@@ -109,47 +109,6 @@ class Test_Configuration extends SimpleSAML\Test\Utils\ClearStateTestCase ...@@ -109,47 +109,6 @@ class Test_Configuration extends SimpleSAML\Test\Utils\ClearStateTestCase
$this->assertEquals($c->hasValueOneOf(array('missing', 'exists_true')), true); $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() * Test \SimpleSAML\Configuration::getBasePath()
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment