Skip to content

Commit

Permalink
Revert "allow running all core test cases via the console"
Browse files Browse the repository at this point in the history
This reverts commit 86e5cc5.
  • Loading branch information
gwoo committed Aug 2, 2009
1 parent 292b37c commit 9e4cb97
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions cake/console/libs/testsuite.php
Expand Up @@ -94,7 +94,7 @@ function initialize() {
if (isset($corePath[0])) {
define('TEST_CAKE_CORE_INCLUDE_PATH', rtrim($corePath[0], DS) . DS);
} else {
define('TEST_CAKE_CORE_INCLUDE_PATH', CAKE_CORE_INCLUDE_PATH . DS . 'cake' . DS);
define('TEST_CAKE_CORE_INCLUDE_PATH', CAKE_CORE_INCLUDE_PATH);
}

$this->__installSimpleTest();
Expand Down Expand Up @@ -236,13 +236,8 @@ function __canRun() {
return true;
}

if ($this->category == 'core') {
if (file_exists($folder.DS.'cases'.DS.$this->file.'.test.php')) {
return true;
}
if (file_exists($folder.DS.'cases'.DS.'libs'.DS.$this->file.'.test.php')) {
return true;
}
if ($this->category == 'core' && file_exists($folder.DS.'cases'.DS.'libs'.DS.$this->file.'.test.php')) {
return true;
}

if ($isPlugin && file_exists($folder.DS.'cases'.DS.$this->file.'.test.php')) {
Expand Down Expand Up @@ -297,11 +292,7 @@ function __run() {
return $result;
}

if (file_exists(CORE_TEST_CASES . DS . $this->file . '.test.php')) {
$case = $this->file . '.test.php';
} else {
$case = 'libs' . DS . $this->file . '.test.php';
}
$case = 'libs'.DS.$this->file.'.test.php';
if ($this->category == 'app') {
$case = $this->file.'.test.php';
} elseif ($this->isPluginTest) {
Expand Down

0 comments on commit 9e4cb97

Please sign in to comment.