Skip to content

Commit

Permalink
Renaming all bake tasks to all tasks.
Browse files Browse the repository at this point in the history
Updating all tests.
  • Loading branch information
markstory committed Sep 25, 2010
1 parent 94d738e commit 4e5ebc5
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
49 changes: 49 additions & 0 deletions cake/tests/cases/console/libs/all_tasks.test.php
@@ -0,0 +1,49 @@
<?php
/**
* AllTasksTest file
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @package cake
* @subpackage cake.tests.cases
* @since CakePHP(tm) v 2.0
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/

/**
* AllTasksTest class
*
* This test group will run all the task tests.
*
* @package cake
* @subpackage cake.tests.groups
*/
class AllTasksTest extends PHPUnit_Framework_TestSuite {

/**
* suite method, defines tests for this suite.
*
* @return void
*/
public static function suite() {
$suite = new PHPUnit_Framework_TestSuite('All Tasks tests');

$path = CORE_TEST_CASES . DS . 'console' . DS . 'libs' . DS . 'tasks' . DS;

$suite->addTestFile(CORE_TEST_CASES . DS . 'console' . DS . 'libs' . DS . 'bake.test.php');
$tasks = array('controller', 'extract', 'model', 'view', 'fixture', 'test', 'db_config', 'project', 'plugin');
foreach ($tasks as $task) {
$suite->addTestFile($path . $task . '.test.php');
}
return $suite;
}
}

2 changes: 1 addition & 1 deletion cake/tests/cases/libs/all_tests.test.php
Expand Up @@ -39,7 +39,7 @@ public static function suite() {
$console = CORE_TEST_CASES . DS . 'console' . DS;

$suite->addTestFile($console . 'all_shells.test.php');
$suite->addTestFile($console . 'libs' . DS . 'all_bake_tasks.test.php');
$suite->addTestFile($console . 'libs' . DS . 'all_tasks.test.php');

$suite->addTestFile($path . 'all_behaviors.test.php');
$suite->addTestFile($path . 'all_cache_engines.test.php');
Expand Down

0 comments on commit 4e5ebc5

Please sign in to comment.