AllDatabaseTest.php 1.6 KB

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