mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
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:
parent
f6a78538ff
commit
2c061ede2b
1 changed files with 17 additions and 12 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue