mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Changing syntax to reflect updated api's
This commit is contained in:
parent
c1056676ec
commit
3c21fa32ba
1 changed files with 7 additions and 6 deletions
|
@ -1088,11 +1088,12 @@ class RouterTest extends CakeTestCase {
|
|||
$this->assertEqual($result, $expected);
|
||||
|
||||
Configure::write('Routing.admin', 'admin');
|
||||
$paths = Configure::read('pluginPaths');
|
||||
Configure::write('pluginPaths', array(
|
||||
TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'plugins' . DS
|
||||
));
|
||||
Configure::write('__objects.plugin', array('test_plugin'));
|
||||
$paths = App::path('plugins');
|
||||
App::build(array(
|
||||
'plugins' => array(
|
||||
TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'plugins' . DS
|
||||
)
|
||||
), false);
|
||||
|
||||
Router::reload();
|
||||
Router::setRequestInfo(array(
|
||||
|
@ -1107,7 +1108,7 @@ class RouterTest extends CakeTestCase {
|
|||
$expected = '/admin/test_plugin';
|
||||
$this->assertEqual($result, $expected);
|
||||
|
||||
Configure::write('pluginPaths', $paths);
|
||||
App::build(array('plugins' => $paths));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue