Moving testsuites around to match packages. Adding more package suites.

This commit is contained in:
mark_story 2011-04-22 12:01:33 -04:00
parent 103a34777a
commit 30dc37fada
13 changed files with 41 additions and 91 deletions

View file

@ -1,6 +1,6 @@
<?php
/**
* AllCacheEnginesTest file
* AllCacheTest file
*
* PHP 5
*
@ -18,13 +18,13 @@
*/
/**
* AllCacheEnginesTest class
* AllCacheTest class
*
* This test group will run cache engine tests.
*
* @package cake.tests.groups
*/
class AllCacheEnginesTest extends PHPUnit_Framework_TestSuite {
class AllCacheTest extends PHPUnit_Framework_TestSuite {
/**
* suite method, defines tests for this suite.

View file

@ -20,7 +20,7 @@
/**
* AllConfigureTest class
*
* This test group will run cache engine tests.
* This test group will run configure tests.
*
* @package cake.tests.groups
*/
@ -32,9 +32,8 @@ class AllConfigureTest extends PHPUnit_Framework_TestSuite {
* @return void
*/
public static function suite() {
$suite = new CakeTestSuite('All Configure and Core related tests');
$suite = new CakeTestSuite('All Configure related tests');
$suite->addTestDirectory(CORE_TEST_CASES . DS . 'Core');
$suite->addTestDirectory(CORE_TEST_CASES . DS . 'Configure');
return $suite;
}

View file

@ -32,12 +32,11 @@ class AllErrorTest extends PHPUnit_Framework_TestSuite {
* @return void
*/
public static function suite() {
$suite = new PHPUnit_Framework_TestSuite('All Error handling tests');
$suite = new CakeTestSuite('All Error handling tests');
$libs = CORE_TEST_CASES . DS;
$suite->addTestFile($libs . 'Error' . DS . 'ErrorHandlerTest.php');
$suite->addTestFile($libs . 'Error' . DS . 'ExceptionRendererTest.php');
$suite->addTestDirectory($libs . 'Error');
return $suite;
}
}

View file

@ -1,44 +0,0 @@
<?php
/**
* AllJavascriptHelpersTest 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.tests.cases
* @since CakePHP(tm) v 2.0
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
/**
* AllJavascriptHelpersTest class
*
* This test group will run all test in the cases/libs/view/helpers directory related
* to Js helper and its engines
*
* @package cake.tests.groups
*/
class AllJavascriptHelpersTest extends PHPUnit_Framework_TestSuite {
/**
* Suite define the tests for this suite
*
* @return void
*/
public static function suite() {
$suite = new PHPUnit_Framework_TestSuite('Js Helper and all Engine Helpers');
$helperTestPath = CORE_TEST_CASES . DS . 'View' . DS . 'Helper' . DS;
$suite->addTestFile($helperTestPath . 'JsHelperTest.php');
$suite->addTestFile($helperTestPath . 'JqueryEngineHelperTest.php');
$suite->addTestFile($helperTestPath . 'MootoolsEngineHelperTest.php');
$suite->addTestFile($helperTestPath . 'PrototypeEngineHelperTest.php');
return $suite;
}
}

View file

@ -1,6 +1,6 @@
<?php
/**
* AllXmlTest file
* AllLogTest file
*
* PHP 5
*
@ -18,13 +18,13 @@
*/
/**
* AllXmlTest class
* AllLogTest class
*
* This test group will run xml class tests
* This test group will run log tests.
*
* @package cake.tests.groups
*/
class AllXmlTest extends PHPUnit_Framework_TestSuite {
class AllLogTest extends PHPUnit_Framework_TestSuite {
/**
* suite method, defines tests for this suite.
@ -32,10 +32,10 @@ class AllXmlTest extends PHPUnit_Framework_TestSuite {
* @return void
*/
public static function suite() {
$suite = new PHPUnit_Framework_TestSuite('All Xml related class tests');
$suite->addTestFile(CORE_TEST_CASES . DS . 'Utility' . DS . 'XmlTest.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'View' . DS . 'Helper' . DS . 'RssHelperTest.php');
$suite = new CakeTestSuite('All Logging related class tests');
$suite->addTestDirectory(CORE_TEST_CASES . DS . 'Log');
$suite->addTestDirectory(CORE_TEST_CASES . DS . 'Log' . DS . 'Engine');
return $suite;
}
}
}

View file

@ -1,6 +1,6 @@
<?php
/**
* AllSocketTest file
* AllNetworkTest file
*
* PHP 5
*
@ -18,13 +18,13 @@
*/
/**
* AllSocketTest class
* AllNetworkTest class
*
* This test group will run socket class tests
*
* @package cake.tests.groups
*/
class AllSocketTest extends PHPUnit_Framework_TestSuite {
class AllNetworkTest extends PHPUnit_Framework_TestSuite {
/**
* suite method, defines tests for this suite.
@ -32,10 +32,10 @@ class AllSocketTest extends PHPUnit_Framework_TestSuite {
* @return void
*/
public static function suite() {
$suite = new CakeTestSuite('All Socket related class tests');
$suite = new CakeTestSuite('All Network related class tests');
$suite->addTestFile(CORE_TEST_CASES . DS . 'Network' . DS . 'CakeSocketTest.php');
$suite->addTestDirectory(CORE_TEST_CASES . DS . 'Network');
$suite->addTestDirectory(CORE_TEST_CASES . DS . 'Network' . DS . 'Http');
return $suite;
}
}
}

View file

@ -32,13 +32,12 @@ class AllRoutingTest extends PHPUnit_Framework_TestSuite {
* @return void
*/
public static function suite() {
$suite = new CakeTestSuite('All Router and Dispatcher class tests');
$suite = new CakeTestSuite('All Routing class tests');
$libs = CORE_TEST_CASES . DS;
$suite->addTestDirectory($libs . 'Routing');
$suite->addTestFile($libs . 'Network' . DS . 'CakeResponseTest.php');
$suite->addTestFile($libs . 'Network' . DS . 'CakeRequestTest.php');
$suite->addTestDirectory($libs . 'Routing' . DS . 'Route');
return $suite;
}
}

View file

@ -34,25 +34,25 @@ class AllTests extends PHPUnit_Framework_TestSuite {
$suite = new PHPUnit_Framework_TestSuite('All Tests');
$path = CORE_TEST_CASES . DS;
$console = $path . 'Console' . DS;
$suite->addTestFile($console . 'AllConsoleTest.php');
$suite->addTestFile($path . 'AllConsoleTest.php');
$suite->addTestFile($path . 'AllBehaviorsTest.php');
$suite->addTestFile($path . 'AllCacheEnginesTest.php');
$suite->addTestFile($path . 'AllCacheTest.php');
$suite->addTestFile($path . 'AllComponentsTest.php');
$suite->addTestFile($path . 'AllConfigureTest.php');
$suite->addTestFile($path . 'AllControllersTest.php');
$suite->addTestFile($path . 'AllCoreTest.php');
$suite->addTestFile($path . 'AllControllerTest.php');
$suite->addTestFile($path . 'AllDatabaseTest.php');
$suite->addTestFile($path . 'AllErrorTest.php');
$suite->addTestFile($path . 'AllHelpersTest.php');
$suite->addTestFile($path . 'AllLibsTest.php');
$suite->addTestFile($path . 'AllLocalizationTest.php');
$suite->addTestFile($path . 'AllLogTest.php');
$suite->addTestFile($path . 'AllI18nTest.php');
$suite->addTestFile($path . 'AllModelTest.php');
$suite->addTestFile($path . 'AllRoutingTest.php');
$suite->addTestFile($path . 'AllSocketTest.php');
$suite->addTestFile($path . 'AllNetworkTest.php');
$suite->addTestFile($path . 'AllTestSuiteTest.php');;
$suite->addTestFile($path . 'AllViewsTest.php');
$suite->addTestFile($path . 'AllXmlTest.php');
$suite->addTestFile($path . 'AllUtilityTest.php');
$suite->addTestFile($path . 'AllViewTest.php');
return $suite;
}
}

View file

@ -1,6 +1,6 @@
<?php
/**
* AllLibsTest file
* AllUtilityTest file
*
* PHP 5
*
@ -18,13 +18,13 @@
*/
/**
* AllLibsTest class
* AllUtilityTest class
*
* This test group will run all non mvc related lib class tests
*
* @package cake.tests.cases
*/
class AllLibsTest extends PHPUnit_Framework_TestSuite {
class AllUtilityTest extends PHPUnit_Framework_TestSuite {
/**
* suite method, defines tests for this suite.
@ -32,13 +32,10 @@ class AllLibsTest extends PHPUnit_Framework_TestSuite {
* @return void
*/
public static function suite() {
$suite = new CakeTestSuite('All non-MVC lib class tests');
$suite = new CakeTestSuite('All Utility class tests');
$suite->addTestFile(CORE_TEST_CASES . DS . 'BasicsTest.php');
$suite->addTestDirectory(CORE_TEST_CASES . DS . 'Utility');
$suite->addTestDirectory(CORE_TEST_CASES . DS . 'Log');
$suite->addTestFile(CORE_TEST_CASES . DS . 'Model' . DS . 'Datasource' . DS . 'CakeSessionTest.php');
//$suite->addTestDirectory(CORE_TEST_CASES . DS . 'Model' . DS . 'Datasource' . DS . 'Session');
return $suite;
}
}
}

View file

@ -1,6 +1,6 @@
<?php
/**
* AllViewsTest file
* AllViewTest file
*
* PHP 5
*
@ -18,13 +18,13 @@
*/
/**
* AllViewsTest class
* AllViewTest class
*
* This test group will run view class tests (view, theme)
*
* @package cake.tests.groups
*/
class AllViewsTest extends PHPUnit_Framework_TestSuite {
class AllViewTest extends PHPUnit_Framework_TestSuite {
/**
* suite method, defines tests for this suite.