updating router test case, closes #4553 where FULL_BASE_URL is not defined when test is run from console

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6739 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2008-05-01 04:54:55 +00:00
parent f6a78538ff
commit 2c061ede2b

View file

@ -26,7 +26,11 @@
* @lastmodified $Date$
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
*/
uses('router', 'debugger');
App::import('Core', array('Router', 'Debugger'));
if (!defined('FULL_BASE_URL')) {
define('FULL_BASE_URL', 'http://cakephp.org');
}
/**
* Short description for class.
@ -35,6 +39,7 @@ uses('router', 'debugger');
* @subpackage cake.tests.cases.libs
*/
class RouterTest extends UnitTestCase {
function setUp() {
$this->router =& Router::getInstance();
}