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:
chartjes 2008-05-14 01:10:24 +00:00
parent 09ebd9cbe6
commit d7817abf29

View file

@ -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);
}
}
?>
?>