From d7817abf29381907d90f00ae1cce855ab115f2cd Mon Sep 17 00:00:00 2001 From: chartjes Date: Wed, 14 May 2008 01:10:24 +0000 Subject: [PATCH] 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 --- cake/tests/cases/console/cake.test.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/cake/tests/cases/console/cake.test.php b/cake/tests/cases/console/cake.test.php index ee59a8bda..5c4419999 100644 --- a/cake/tests/cases/console/cake.test.php +++ b/cake/tests/cases/console/cake.test.php @@ -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); + } } -?> \ No newline at end of file +?>