Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Splitting Model test into several classes for ease of testing. Creati…

…ng new 'Database' test group for schema, db_acl and datasource tests. Model group test now only encompasses model & behavior test cases.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8219 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information...
commit d2a6be21ef91ea837008c957998efe3316c88241 1 parent 7818eae
@jperras jperras authored
View
23,728 cake/tests/cases/libs/model/model.test.php
12,076 additions, 11,652 deletions not shown
View
56 cake/tests/groups/database.group.php
@@ -0,0 +1,56 @@
+<?php
+/* SVN FILE: $Id$ */
+/**
+ * DatabaseGroupTest file
+ *
+ * Long description for file
+ *
+ * PHP versions 4 and 5
+ *
+ * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
+ * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
+ *
+ * Licensed under The Open Group Test Suite License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
+ * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests
+ * @package cake
+ * @subpackage cake.tests.groups
+ * @since CakePHP(tm) v 1.2.0.5517
+ * @version $Revision$
+ * @modifiedby $LastChangedBy$
+ * @lastmodified $Date$
+ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
+ */
+/**
+ * DatabaseGroupTest class
+ *
+ * This test group will run all behavior, schema and datasource tests excluding database
+ * driver-specific tests
+ *
+ * @package cake
+ * @subpackage cake.tests.groups
+ */
+class DatabaseGroupTest extends GroupTest {
+/**
+ * label property
+ *
+ * @var string 'All model tests'
+ * @access public
+ */
+ var $label = 'Datasources, Schema and DbAcl tests';
+/**
+ * ModelGroupTest method
+ *
+ * @access public
+ * @return void
+ */
+ function DatabaseGroupTest() {
+ TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'model' . DS . 'db_acl');
+ TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'model' . DS . 'schema');
+ TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'model' . DS . 'datasources' . DS . 'dbo_source');
+ }
+}
+?>
View
7 cake/tests/groups/model.group.php
@@ -37,10 +37,10 @@ class ModelGroupTest extends GroupTest {
/**
* label property
*
- * @var string 'All model tests'
+ * @var string
* @access public
*/
- var $label = 'Model, all Behaviors and Datasources';
+ var $label = 'Model & Behavior tests';
/**
* ModelGroupTest method
*
@@ -49,9 +49,6 @@ class ModelGroupTest extends GroupTest {
*/
function ModelGroupTest() {
TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'model' . DS . 'model');
- TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'model' . DS . 'db_acl');
- TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'model' . DS . 'schema');
- TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'model' . DS . 'datasources' . DS . 'dbo_source');
TestManager::addTestCasesFromDirectory($this, CORE_TEST_CASES . DS . 'libs' . DS . 'model' . DS . 'behaviors');
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.