ModelTest.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * ModelTest file
  4. *
  5. * PHP 5
  6. *
  7. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  8. * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  9. *
  10. * Licensed under The MIT License
  11. * For full copyright and license information, please see the LICENSE.txt
  12. * Redistributions of files must retain the above copyright notice.
  13. *
  14. * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  15. * @link http://cakephp.org CakePHP(tm) Project
  16. * @since CakePHP(tm) v 2.0
  17. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  18. */
  19. /**
  20. * ModelTest class
  21. *
  22. * This test group will run model class tests
  23. *
  24. */
  25. class ModelTest 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('All Model related class tests');
  33. $suite->addTestFile(CORE_TEST_CASES . DS . 'Model/Validator/ValidationSetTest.php');
  34. $suite->addTestFile(CORE_TEST_CASES . DS . 'Model/Validator/ValidationRuleTest.php');
  35. $suite->addTestFile(CORE_TEST_CASES . DS . 'Model/ModelReadTest.php');
  36. $suite->addTestFile(CORE_TEST_CASES . DS . 'Model/ModelWriteTest.php');
  37. $suite->addTestFile(CORE_TEST_CASES . DS . 'Model/ModelDeleteTest.php');
  38. $suite->addTestFile(CORE_TEST_CASES . DS . 'Model/ModelValidationTest.php');
  39. $suite->addTestFile(CORE_TEST_CASES . DS . 'Model/ModelIntegrationTest.php');
  40. $suite->addTestFile(CORE_TEST_CASES . DS . 'Model/ModelCrossSchemaHabtmTest.php');
  41. return $suite;
  42. }
  43. }