mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Adding the session datasources apth to App::build(), in the future look into registering only the top level packages
Fixing CakeSession tests
This commit is contained in:
parent
a1fd27741d
commit
bff6343979
4 changed files with 3 additions and 3 deletions
|
@ -291,7 +291,8 @@ class App {
|
|||
'Model' => array('%s' . 'models' . DS),
|
||||
'Model/Behavior' => array('%s' . 'models' . DS . 'behaviors' . DS),
|
||||
'Model/Datasource' => array('%s' . 'models' . DS . 'datasources' . DS),
|
||||
'Model/Datasource/Database' => array('%s' . 'models' . DS . 'datasources' . DS . 'database' . DS),
|
||||
'Model/Datasource/Database' => array('%s' . 'models' . DS . 'datasources' . DS . 'Database' . DS),
|
||||
'Model/Datasource/Session' => array('%s' . 'models' . DS . 'datasources' . DS . 'Session' . DS),
|
||||
'Controller' => array('%s' . 'controllers' . DS),
|
||||
'Controller/Component' => array('%s' . 'controllers' . DS . 'components' . DS),
|
||||
'View' => array('%s' . 'views' . DS),
|
||||
|
|
|
@ -527,7 +527,7 @@ class CakeSessionTest extends CakeTestCase {
|
|||
*/
|
||||
function testUsingAppLibsHandler() {
|
||||
App::build(array(
|
||||
'libs' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'libs' . DS),
|
||||
'Model/Datasource/Session' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'models' . DS . 'datasources' . DS . 'Session' . DS),
|
||||
'plugins' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'plugins' . DS)
|
||||
), true);
|
||||
Configure::write('Session', array(
|
||||
|
@ -549,7 +549,6 @@ class CakeSessionTest extends CakeTestCase {
|
|||
*/
|
||||
function testUsingPluginHandler() {
|
||||
App::build(array(
|
||||
'libs' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'libs' . DS),
|
||||
'plugins' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'plugins' . DS)
|
||||
), true);
|
||||
|
||||
|
|
Loading…
Reference in a new issue