2010-06-24 00:53:41 -04:30
|
|
|
<?php
|
|
|
|
/**
|
2011-05-29 01:22:38 +02:00
|
|
|
* ModelTest file
|
2010-06-24 00:53:41 -04:30
|
|
|
*
|
2017-06-10 23:33:55 +02:00
|
|
|
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
|
2017-06-11 00:10:52 +02:00
|
|
|
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
|
2010-06-24 00:53:41 -04:30
|
|
|
*
|
|
|
|
* Licensed under The MIT License
|
2013-02-08 21:22:51 +09:00
|
|
|
* For full copyright and license information, please see the LICENSE.txt
|
2010-06-24 00:53:41 -04:30
|
|
|
* Redistributions of files must retain the above copyright notice.
|
|
|
|
*
|
2017-06-11 00:10:52 +02:00
|
|
|
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
|
2017-06-10 23:33:55 +02:00
|
|
|
* @link https://cakephp.org CakePHP(tm) Project
|
2011-07-26 01:46:14 -04:30
|
|
|
* @package Cake.Test.Case
|
2010-06-24 00:53:41 -04:30
|
|
|
* @since CakePHP(tm) v 2.0
|
2017-06-11 00:23:14 +02:00
|
|
|
* @license https://opensource.org/licenses/mit-license.php MIT License
|
2010-06-24 00:53:41 -04:30
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2011-05-29 01:22:38 +02:00
|
|
|
* ModelTest class
|
2010-06-24 00:53:41 -04:30
|
|
|
*
|
|
|
|
* This test group will run model class tests
|
|
|
|
*
|
2011-07-26 01:46:14 -04:30
|
|
|
* @package Cake.Test.Case
|
2010-06-24 00:53:41 -04:30
|
|
|
*/
|
2011-05-29 01:22:38 +02:00
|
|
|
class ModelTest extends PHPUnit_Framework_TestSuite {
|
2010-06-24 00:53:41 -04:30
|
|
|
|
|
|
|
/**
|
|
|
|
* suite method, defines tests for this suite.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public static function suite() {
|
|
|
|
$suite = new PHPUnit_Framework_TestSuite('All Model related class tests');
|
|
|
|
|
2012-05-20 15:51:09 -04:00
|
|
|
$suite->addTestFile(CORE_TEST_CASES . DS . 'Model' . DS . 'Validator' . DS . 'CakeValidationSetTest.php');
|
|
|
|
$suite->addTestFile(CORE_TEST_CASES . DS . 'Model' . DS . 'Validator' . DS . 'CakeValidationRuleTest.php');
|
2011-04-11 22:23:44 -04:30
|
|
|
$suite->addTestFile(CORE_TEST_CASES . DS . 'Model' . DS . 'ModelReadTest.php');
|
|
|
|
$suite->addTestFile(CORE_TEST_CASES . DS . 'Model' . DS . 'ModelWriteTest.php');
|
2011-07-19 10:57:31 +02:00
|
|
|
$suite->addTestFile(CORE_TEST_CASES . DS . 'Model' . DS . 'ModelDeleteTest.php');
|
2011-04-11 22:23:44 -04:30
|
|
|
$suite->addTestFile(CORE_TEST_CASES . DS . 'Model' . DS . 'ModelValidationTest.php');
|
|
|
|
$suite->addTestFile(CORE_TEST_CASES . DS . 'Model' . DS . 'ModelIntegrationTest.php');
|
2011-11-05 18:21:53 +07:00
|
|
|
$suite->addTestFile(CORE_TEST_CASES . DS . 'Model' . DS . 'ModelCrossSchemaHabtmTest.php');
|
2010-06-24 00:53:41 -04:30
|
|
|
return $suite;
|
|
|
|
}
|
2011-05-29 01:22:38 +02:00
|
|
|
}
|