From f68701d6470d998dbdb4d0593e29e2d04f547c55 Mon Sep 17 00:00:00 2001 From: ADmad Date: Sun, 4 Aug 2013 21:14:31 +0530 Subject: [PATCH] Created new test group for all db related tests --- .travis.yml | 2 +- lib/Cake/Test/Case/AllDbRelatedTest.php | 46 +++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 lib/Cake/Test/Case/AllDbRelatedTest.php diff --git a/.travis.yml b/.travis.yml index b02fa459557..834007621f7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -111,7 +111,7 @@ before_script: }" > app/Config/database.php script: - - 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" + - 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" notifications: email: false diff --git a/lib/Cake/Test/Case/AllDbRelatedTest.php b/lib/Cake/Test/Case/AllDbRelatedTest.php new file mode 100644 index 00000000000..47065689166 --- /dev/null +++ b/lib/Cake/Test/Case/AllDbRelatedTest.php @@ -0,0 +1,46 @@ +addTestFile($path . 'AllBehaviorsTest.php'); + $suite->addTestFile($path . 'Controller' . DS . 'Component' . DS . 'PaginatorComponentTest.php'); + $suite->addTestFile($path . 'AllDatabaseTest.php'); + $suite->addTestFile($path . 'Model' . DS . 'ModelTest.php'); + return $suite; + } +}