pictcode_admin / lib / Cake / Test / Case / AllDatabaseTest.php @ 5ad38a95
履歴 | 表示 | アノテート | ダウンロード (1.654 KB)
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 |
/**
|
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 |
/**
|
29 |
* suite method, defines tests for this suite.
|
30 |
*
|
31 |
* @return void
|
32 |
*/
|
33 |
public static function suite() { |
34 |
$suite = new PHPUnit_Framework_TestSuite('Datasources, Schema and DbAcl tests'); |
35 |
|
36 |
$path = CORE_TEST_CASES . DS . 'Model' . DS; |
37 |
$tasks = array( |
38 |
'AclNode',
|
39 |
'CakeSchema',
|
40 |
'ConnectionManager',
|
41 |
'Datasource' . DS . 'DboSource', |
42 |
'Datasource' . DS . 'Database' . DS . 'Mysql', |
43 |
'Datasource' . DS . 'Database' . DS . 'Postgres', |
44 |
'Datasource' . DS . 'Database' . DS . 'Sqlite', |
45 |
'Datasource' . DS . 'Database' . DS . 'Sqlserver', |
46 |
'Datasource' . DS . 'CakeSession', |
47 |
'Datasource' . DS . 'Session' . DS . 'CacheSession', |
48 |
'Datasource' . DS . 'Session' . DS . 'DatabaseSession', |
49 |
); |
50 |
foreach ($tasks as $task) { |
51 |
$suite->addTestFile($path . $task . 'Test.php'); |
52 |
} |
53 |
return $suite; |
54 |
} |
55 |
} |