2010-06-26 03:36:08 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* AllDatabaseTest file
|
|
|
|
*
|
2017-06-10 21:33:55 +00:00
|
|
|
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
|
2017-06-10 22:10:52 +00:00
|
|
|
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
|
2010-06-26 03:36:08 +00:00
|
|
|
*
|
|
|
|
* Licensed under The MIT License
|
2013-02-08 12:22:51 +00:00
|
|
|
* For full copyright and license information, please see the LICENSE.txt
|
2010-06-26 03:36:08 +00:00
|
|
|
* Redistributions of files must retain the above copyright notice.
|
|
|
|
*
|
2017-06-10 22:10:52 +00:00
|
|
|
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
|
2017-06-10 21:33:55 +00:00
|
|
|
* @link https://cakephp.org CakePHP(tm) Project
|
2011-07-26 06:16:14 +00:00
|
|
|
* @package Cake.Test.Case
|
2010-06-26 03:36:08 +00:00
|
|
|
* @since CakePHP(tm) v 2.0
|
2017-06-10 22:23:14 +00:00
|
|
|
* @license https://opensource.org/licenses/mit-license.php MIT License
|
2010-06-26 03:36:08 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* AllDatabaseTest class
|
|
|
|
*
|
|
|
|
* This test group will run database tests not in model or behavior group.
|
|
|
|
*
|
2011-07-26 06:16:14 +00:00
|
|
|
* @package Cake.Test.Case
|
2010-06-26 03:36:08 +00:00
|
|
|
*/
|
2022-12-28 06:46:06 +00:00
|
|
|
class AllDatabaseTest extends \PHPUnit\Framework\TestSuite {
|
2010-06-26 03:36:08 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* suite method, defines tests for this suite.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public static function suite() {
|
2022-12-28 06:46:06 +00:00
|
|
|
$suite = new \PHPUnit\Framework\TestSuite('Datasources, Schema and DbAcl tests');
|
2010-06-26 03:36:08 +00:00
|
|
|
|
2011-04-12 02:53:44 +00:00
|
|
|
$path = CORE_TEST_CASES . DS . 'Model' . DS;
|
2010-11-17 04:29:24 +00:00
|
|
|
$tasks = array(
|
2012-02-24 01:09:11 +00:00
|
|
|
'AclNode',
|
2011-04-12 02:53:44 +00:00
|
|
|
'CakeSchema',
|
|
|
|
'ConnectionManager',
|
|
|
|
'Datasource' . DS . 'DboSource',
|
2011-05-08 23:24:52 +00:00
|
|
|
'Datasource' . DS . 'Database' . DS . 'Mysql',
|
2011-04-12 02:53:44 +00:00
|
|
|
'Datasource' . DS . 'Database' . DS . 'Postgres',
|
2011-05-24 16:41:51 +00:00
|
|
|
'Datasource' . DS . 'Database' . DS . 'Sqlite',
|
2012-01-12 12:06:24 +00:00
|
|
|
'Datasource' . DS . 'Database' . DS . 'Sqlserver',
|
|
|
|
'Datasource' . DS . 'CakeSession',
|
|
|
|
'Datasource' . DS . 'Session' . DS . 'CacheSession',
|
|
|
|
'Datasource' . DS . 'Session' . DS . 'DatabaseSession',
|
2010-11-17 04:29:24 +00:00
|
|
|
);
|
2010-06-26 03:36:08 +00:00
|
|
|
foreach ($tasks as $task) {
|
2011-04-12 02:53:44 +00:00
|
|
|
$suite->addTestFile($path . $task . 'Test.php');
|
2010-06-26 03:36:08 +00:00
|
|
|
}
|
|
|
|
return $suite;
|
|
|
|
}
|
|
|
|
}
|