mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge branch '1.3' into 1.3-bake
This commit is contained in:
commit
a0bd6e9db5
1 changed files with 11 additions and 5 deletions
|
@ -235,8 +235,9 @@ class TestSuiteShell extends Shell {
|
|||
if ($this->category == 'app' && file_exists($folder.DS.'cases'.DS.$this->file.'.test.php')) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if ($this->category == 'core' && file_exists($folder.DS.'cases'.DS.'libs'.DS.$this->file.'.test.php')) {
|
||||
$coreCaseExists = file_exists($folder.DS.'cases'.DS.$this->file.'.test.php');
|
||||
$coreLibCaseExists = file_exists($folder.DS.'cases'.DS.'libs'.DS.$this->file.'.test.php');
|
||||
if ($this->category == 'core' && ($coreCaseExists || $coreLibCaseExists)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -291,9 +292,14 @@ class TestSuiteShell extends Shell {
|
|||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
$case = 'libs'.DS.$this->file.'.test.php';
|
||||
if ($this->category == 'app') {
|
||||
if ($this->category === 'core') {
|
||||
$coreCaseExists = file_exists(CORE_TEST_CASES.DS.$this->file.'.test.php');
|
||||
if ($coreCaseExists) {
|
||||
$case = $this->file . '.test.php';
|
||||
} else {
|
||||
$case = 'libs' . DS . $this->file . '.test.php';
|
||||
}
|
||||
} elseif ($this->category === 'app') {
|
||||
$case = $this->file.'.test.php';
|
||||
} elseif ($this->isPluginTest) {
|
||||
$case = $this->file.'.test.php';
|
||||
|
|
Loading…
Reference in a new issue