AllDatabaseTest.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /**
  3. * AllDatabaseTest file
  4. *
  5. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  6. * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  7. *
  8. * Licensed under The MIT License
  9. * For full copyright and license information, please see the LICENSE.txt
  10. * Redistributions of files must retain the above copyright notice.
  11. *
  12. * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  13. * @link http://cakephp.org CakePHP(tm) Project
  14. * @package Cake.Test.Case
  15. * @since CakePHP(tm) v 2.0
  16. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  17. */
  18. /**
  19. * AllDatabaseTest class
  20. *
  21. * This test group will run database tests not in model or behavior group.
  22. *
  23. * @package Cake.Test.Case
  24. */
  25. class AllDatabaseTest extends PHPUnit_Framework_TestSuite {
  26. /**
  27. * suite method, defines tests for this suite.
  28. *
  29. * @return void
  30. */
  31. public static function suite() {
  32. $suite = new PHPUnit_Framework_TestSuite('Datasources, Schema and DbAcl tests');
  33. $path = CORE_TEST_CASES . DS . 'Model' . DS;
  34. $tasks = array(
  35. 'AclNode',
  36. 'CakeSchema',
  37. 'ConnectionManager',
  38. 'Datasource' . DS . 'DboSource',
  39. 'Datasource' . DS . 'Database' . DS . 'Mysql',
  40. 'Datasource' . DS . 'Database' . DS . 'Postgres',
  41. 'Datasource' . DS . 'Database' . DS . 'Sqlite',
  42. 'Datasource' . DS . 'Database' . DS . 'Sqlserver',
  43. 'Datasource' . DS . 'CakeSession',
  44. 'Datasource' . DS . 'Session' . DS . 'CacheSession',
  45. 'Datasource' . DS . 'Session' . DS . 'DatabaseSession',
  46. );
  47. foreach ($tasks as $task) {
  48. $suite->addTestFile($path . $task . 'Test.php');
  49. }
  50. return $suite;
  51. }
  52. }