mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 02:26:17 +00:00
Added test case for ticket 4495, where when running "cake bake" on windows will result in the proper app directory being written to disk. Test currently fails when comparing root dir created by bake to the ROOT constant
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6863 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
09ebd9cbe6
commit
d7817abf29
1 changed files with 19 additions and 1 deletions
|
@ -206,6 +206,24 @@ class ShellDispatcherTest extends UnitTestCase {
|
|||
|
||||
$expected = array('/cake/1.2.x.x/cake/console/cake.php', 'schema', 'run', 'create');
|
||||
$this->assertEqual($expected, $Dispatcher->args);
|
||||
|
||||
$params = array('cake.php',
|
||||
'-working',
|
||||
'C:\wamp\www\cake\app',
|
||||
'bake',
|
||||
'-app',
|
||||
'C:\wamp\www\apps\cake\app',
|
||||
);
|
||||
|
||||
$expected = array('app' => 'C:\wamp\www\apps\cake\app',
|
||||
'working' => 'C:\wamp\www\cake\app',
|
||||
'root' => ROOT
|
||||
);
|
||||
|
||||
$Dispatcher->params = $Dispatcher->args = array();
|
||||
$Dispatcher->parseParams($params);
|
||||
$this->assertEqual($expected, $Dispatcher->params);
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Add table
Reference in a new issue