<?php
/*
 * Copyright (c) 2012, webvariants GbR, http://www.webvariants.de
 *
 * This file is released under the terms of the MIT license. You can find the
 * complete text in the attached LICENSE file or online at:
 *
 * http://www.opensource.org/licenses/mit-license.php
 */

class RealURL2_ConfigurationTest extends RealURL2_BaseTest {
	public function testGetDefaultFragments() {
		$data = WV24_Util::getDefaultFragments();
		$this->assertEquals(array(5 => '//cli', 8 => '//cli/en'), $data);

		$data = WV24_Util::getDefaultDomains();
		$this->assertEquals(array(5 => 'cli', 8 => 'cli'), $data);

		$this->setConfigValue('default_fragment', '//domaina.com', 5);
		$this->setConfigValue('default_fragment', '//domainb.com', 8);

		$data = WV24_Util::getDefaultDomains();
		$this->assertEquals(array(5 => 'domaina.com', 8 => 'domainb.com'), $data);
	}
}
