mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Moving Dispatcher inside libs directory, as it is part of CakePHP's libs.
This commit is contained in:
parent
6073ac5dfa
commit
dad7963ea4
3 changed files with 9 additions and 7 deletions
|
@ -36,12 +36,14 @@ class AllRoutingTest extends PHPUnit_Framework_TestSuite {
|
|||
public static function suite() {
|
||||
$suite = new PHPUnit_Framework_TestSuite('All Router and Dispatcher class tests');
|
||||
|
||||
$suite->addTestFile(CORE_TEST_CASES . DS . 'dispatcher.test.php');
|
||||
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'router.test.php');
|
||||
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'route' . DS . 'cake_route.test.php');
|
||||
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'route' . DS . 'plugin_short_route.test.php');
|
||||
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'cake_response.test.php');
|
||||
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'cake_request.test.php');
|
||||
$libs = CORE_TEST_CASES . DS . 'libs' . DS;
|
||||
|
||||
$suite->addTestFile($libs . 'dispatcher.test.php');
|
||||
$suite->addTestFile($libs . 'router.test.php');
|
||||
$suite->addTestFile($libs . 'route' . DS . 'cake_route.test.php');
|
||||
$suite->addTestFile($libs . 'route' . DS . 'plugin_short_route.test.php');
|
||||
$suite->addTestFile($libs . 'cake_response.test.php');
|
||||
$suite->addTestFile($libs . 'cake_request.test.php');
|
||||
return $suite;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
* @since CakePHP(tm) v 1.2.0.4206
|
||||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
||||
*/
|
||||
require_once CAKE . 'dispatcher.php';
|
||||
App::import('Core', 'Dispatcher', false);
|
||||
App::import('Core', 'CakeResponse', false);
|
||||
|
||||
if (!class_exists('AppController')) {
|
Loading…
Reference in a new issue