From 7f9f76d012ca14280c0f1ac33aad7ce98ee1ed70 Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 24 Jun 2010 22:54:15 -0400 Subject: [PATCH] Migrating Controller group to PHPUnit. --- .../libs/controller/all_controllers.test.php | 46 +++++++++++++++++ cake/tests/groups/controller.group.php | 49 ------------------- 2 files changed, 46 insertions(+), 49 deletions(-) create mode 100644 cake/tests/cases/libs/controller/all_controllers.test.php delete mode 100644 cake/tests/groups/controller.group.php diff --git a/cake/tests/cases/libs/controller/all_controllers.test.php b/cake/tests/cases/libs/controller/all_controllers.test.php new file mode 100644 index 000000000..ab3cf5581 --- /dev/null +++ b/cake/tests/cases/libs/controller/all_controllers.test.php @@ -0,0 +1,46 @@ +addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'controller' . DS . 'controller.test.php'); + $suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'controller' . DS . 'scaffold.test.php'); + $suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'controller' . DS . 'pages_controller.test.php'); + $suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'controller' . DS . 'component.test.php'); + $suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'controller' . DS . 'controller_merge_vars.test.php'); + return $suite; + } +} \ No newline at end of file diff --git a/cake/tests/groups/controller.group.php b/cake/tests/groups/controller.group.php deleted file mode 100644 index 91f1211a3..000000000 --- a/cake/tests/groups/controller.group.php +++ /dev/null @@ -1,49 +0,0 @@ - - * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) - * - * Licensed under The Open Group Test Suite License - * Redistributions of files must retain the above copyright notice. - * - * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests - * @package cake - * @subpackage cake.tests.groups - * @since CakePHP(tm) v 1.2.0.4206 - * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License - */ - -/** - * ControllerGroupTest - * - * @package cake - * @subpackage cake.tests.groups - */ -class ControllerGroupTest extends TestSuite { - -/** - * label property - * - * @var string 'All cake/libs/controller/* (Not yet implemented)' - * @access public - */ - public $label = 'Component, Controllers, Scaffold test cases.'; -/** - * LibControllerGroupTest method - * - * @access public - * @return void - */ - function ControllerGroupTest() { - TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'controller' . DS . 'controller'); - TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'controller' . DS . 'scaffold'); - TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'controller' . DS . 'pages_controller'); - TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'controller' . DS . 'component'); - TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'controller' . DS . 'controller_merge_vars'); - } -}