Skip to content

Commit

Permalink
Dont use cached objects, but read from path, Also added AllTestsTest
Browse files Browse the repository at this point in the history
  • Loading branch information
ceeram committed Jun 21, 2012
1 parent a98ccb1 commit a784a57
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Test/Case/AllCoreTestsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class AllCoreTestsTest extends PHPUnit_Framework_TestSuite {
*/
public static function suite() {
$suite = new CakeTestSuite('All Core plugins test');
$plugins = App::objects('plugin', APP . 'Core');
$plugins = App::objects('plugin', APP . 'Core', false);
foreach ($plugins as $plugin) {
if (CakePlugin::loaded($plugin)) {
$file = CakePlugin::path($plugin) . 'Test' . DS . 'Case' . DS . 'All' . $plugin . 'TestsTest.php';
Expand Down
2 changes: 1 addition & 1 deletion Test/Case/AllDeveloperTestsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class AllCoreTestsTest extends PHPUnit_Framework_TestSuite {
*/
public static function suite() {
$suite = new CakeTestSuite('All Developer plugins test');
$plugins = App::objects('plugin', APP . 'Developer');
$plugins = App::objects('plugin', APP . 'Developer', false);
foreach ($plugins as $plugin) {
if (CakePlugin::loaded($plugin)) {
$file = CakePlugin::path($plugin) . 'Test' . DS . 'Case' . DS . 'All' . $plugin . 'TestsTest.php';
Expand Down
3 changes: 2 additions & 1 deletion Test/Case/AllPluginTestsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ class AllPluginTestsTest extends PHPUnit_Framework_TestSuite {
*/
public static function suite() {
$suite = new CakeTestSuite('All Plugin plugins test');
$plugins = App::objects('plugin', APP . 'Plugin');
$plugins = App::objects('plugin', APP . 'Plugin', false);
debug($plugins);
foreach ($plugins as $plugin) {
if (CakePlugin::loaded($plugin)) {
$file = CakePlugin::path($plugin) . 'Test' . DS . 'Case' . DS . 'All' . $plugin . 'TestsTest.php';
Expand Down
16 changes: 16 additions & 0 deletions Test/Case/AllTestsTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php
class AllTestsTest extends PHPUnit_Framework_TestSuite {

/**
* Suite define the tests for this suite
*
* @return void
*/
public static function suite() {
$suite = new CakeTestSuite('All plugins test');
$suite->addTestFile('AllCoreTestsTest');
$suite->addTestFile('AllDeveloperTestsTest');
$suite->addTestFile('AllPluginTestsTest');
return $suite;
}
}

0 comments on commit a784a57

Please sign in to comment.