summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2011-08-15 18:23:29 +0200
committerChristian Weiske <cweiske@cweiske.de>2014-03-26 21:43:32 +0100
commitf93c3bbe76f8fe87049e2ad5e254a201484a48bb (patch)
tree3c5343261e1e08d63b436406a15d47d468e47c82
parentb0e4b4390bca05446e10ab208a08e6ecc2f10ba1 (diff)
downloadSemanticScuttle-f93c3bbe76f8fe87049e2ad5e254a201484a48bb.zip
SemanticScuttle-f93c3bbe76f8fe87049e2ad5e254a201484a48bb.tar.gz
SemanticScuttle-f93c3bbe76f8fe87049e2ad5e254a201484a48bb.tar.bz2
test configurable root
-rw-r--r--tests/SemanticScuttle/EnvironmentTest.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/SemanticScuttle/EnvironmentTest.php b/tests/SemanticScuttle/EnvironmentTest.php
index 762d350..35851f0 100644
--- a/tests/SemanticScuttle/EnvironmentTest.php
+++ b/tests/SemanticScuttle/EnvironmentTest.php
@@ -230,6 +230,15 @@ class SemanticScuttle_EnvironmentTest extends PHPUnit_Framework_TestCase
);
}
+ public function testGetRootWithConfigPreset()
+ {
+ $GLOBALS['root'] = 'https://happy.penguin.example.org/walks/away/';
+ $this->assertEquals(
+ 'https://happy.penguin.example.org/walks/away/',
+ SemanticScuttle_Environment::getRoot()
+ );
+ }
+
public function testGetRootInRootDir()
{
$_SERVER = array(