mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge branch '1.3-console' of dev@code.cakephp.org:cakephp into 1.3-console
This commit is contained in:
commit
1e88afdc5a
1 changed files with 13 additions and 4 deletions
|
@ -94,7 +94,7 @@ class TestSuiteShell extends Shell {
|
|||
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);
|
||||
define('TEST_CAKE_CORE_INCLUDE_PATH', CAKE_CORE_INCLUDE_PATH . DS . 'cake' . DS);
|
||||
}
|
||||
|
||||
$this->__installSimpleTest();
|
||||
|
@ -236,8 +236,13 @@ class TestSuiteShell extends Shell {
|
|||
return true;
|
||||
}
|
||||
|
||||
if ($this->category == 'core' && file_exists($folder.DS.'cases'.DS.'libs'.DS.$this->file.'.test.php')) {
|
||||
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 ($isPlugin && file_exists($folder.DS.'cases'.DS.$this->file.'.test.php')) {
|
||||
|
@ -292,7 +297,11 @@ class TestSuiteShell extends Shell {
|
|||
return $result;
|
||||
}
|
||||
|
||||
$case = 'libs'.DS.$this->file.'.test.php';
|
||||
if (file_exists(CORE_TEST_CASES . DS . $this->file . '.test.php')) {
|
||||
$case = $this->file . '.test.php';
|
||||
} else {
|
||||
$case = 'libs' . DS . $this->file . '.test.php';
|
||||
}
|
||||
if ($this->category == 'app') {
|
||||
$case = $this->file.'.test.php';
|
||||
} elseif ($this->isPluginTest) {
|
||||
|
|
Loading…
Reference in a new issue