Skip to content

Commit f68701d

Browse files
committed
Created new test group for all db related tests
1 parent e5be998 commit f68701d

File tree

2 files changed

+47
-1
lines changed

2 files changed

+47
-1
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ before_script:
111111
}" > app/Config/database.php
112112

113113
script:
114-
- sh -c "if [ '$PHPCS' = '1' ]; then phpcs -p --extensions=php --standard=CakePHP ./lib/Cake; elif [ '$DB' = 'mysql' ]; then ./lib/Cake/Console/cake test core AllTests --stderr; else ./lib/Cake/Console/cake test core AllDatabase --stderr; fi"
114+
- sh -c "if [ '$PHPCS' = '1' ]; then phpcs -p --extensions=php --standard=CakePHP ./lib/Cake; elif [ '$DB' = 'mysql' ]; then ./lib/Cake/Console/cake test core AllTests --stderr; else ./lib/Cake/Console/cake test core AllDbRelated --stderr; fi"
115115

116116
notifications:
117117
email: false
+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
/**
3+
* AllDbRelatedTest 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+
* @package Cake.Test.Case
17+
* @since CakePHP(tm) v 2.3
18+
* @license http://www.opensource.org/licenses/mit-license.php MIT License
19+
*/
20+
21+
/**
22+
* AllDbRelatedTest class
23+
*
24+
* This test group will run db related tests.
25+
*
26+
* @package Cake.Test.Case
27+
*/
28+
class AllDbRelatedTest extends PHPUnit_Framework_TestSuite {
29+
30+
/**
31+
* Suite define the tests for this suite
32+
*
33+
* @return void
34+
*/
35+
public static function suite() {
36+
$suite = new PHPUnit_Framework_TestSuite('All Db Related Tests');
37+
38+
$path = CORE_TEST_CASES . DS;
39+
40+
$suite->addTestFile($path . 'AllBehaviorsTest.php');
41+
$suite->addTestFile($path . 'Controller' . DS . 'Component' . DS . 'PaginatorComponentTest.php');
42+
$suite->addTestFile($path . 'AllDatabaseTest.php');
43+
$suite->addTestFile($path . 'Model' . DS . 'ModelTest.php');
44+
return $suite;
45+
}
46+
}

0 commit comments

Comments
 (0)