From 6124eb6f7a234ebd2f7e74742cece8579e157ea3 Mon Sep 17 00:00:00 2001 From: mark_story Date: Sat, 25 Sep 2010 00:13:06 -0400 Subject: [PATCH] Moving All Tasks suite. --- cake/tests/cases/console/{libs => }/all_tasks.test.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) rename cake/tests/cases/console/{libs => }/all_tasks.test.php (81%) diff --git a/cake/tests/cases/console/libs/all_tasks.test.php b/cake/tests/cases/console/all_tasks.test.php similarity index 81% rename from cake/tests/cases/console/libs/all_tasks.test.php rename to cake/tests/cases/console/all_tasks.test.php index 8ef309f0f..7316f490e 100644 --- a/cake/tests/cases/console/libs/all_tasks.test.php +++ b/cake/tests/cases/console/all_tasks.test.php @@ -34,15 +34,12 @@ class AllTasksTest extends PHPUnit_Framework_TestSuite { * @return void */ public static function suite() { - $suite = new PHPUnit_Framework_TestSuite('All Tasks tests'); + $suite = new CakeTestSuite('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'); - } + $suite->addTestDirectory($path); return $suite; } }