Skip to content

Commit

Permalink
Adding tests for ShellDispatcher, Shell, ExtractTask and TestTask.
Browse files Browse the repository at this point in the history
Adding console test group.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8096 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information
mariuswilms committed Mar 13, 2009
1 parent 36d3540 commit b184d07
Show file tree
Hide file tree
Showing 5 changed files with 481 additions and 104 deletions.
4 changes: 4 additions & 0 deletions cake/tests/cases/console/cake.test.php
Expand Up @@ -445,6 +445,8 @@ function testHelpCommand() {
$expected .= "\n/";
$this->assertPattern($expected, $Dispatcher->stdout);

// Shells need to be returned ordered
// See Configure::__list/Folder::read
$expected = "/ ROOT(\\\|\/)cake(\\\|\/)tests(\\\|\/)test_app(\\\|\/)plugins(\\\|\/)test_plugin_two(\\\|\/)vendors(\\\|\/)shells:";
$expected .= "\n\t example";
$expected .= "\n\t welcome";
Expand All @@ -461,6 +463,8 @@ function testHelpCommand() {
$expected .= "\n/";
$this->assertPattern($expected, $Dispatcher->stdout);

// Shells need to be returned ordered
// See Configure::__list/Folder::read
$expected = "/ ROOT(\\\|\/)cake(\\\|\/)console(\\\|\/)libs:";
$expected .= "\n\t acl";
$expected .= "\n\t api";
Expand Down

0 comments on commit b184d07

Please sign in to comment.