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(