Permalink
Browse files
slim down some more logic
- Loading branch information...
Showing
with
2 additions
and
2 deletions.
-
+2
−2
lib/Cake/Console/Command/TestShell.php
|
@@ -351,10 +351,10 @@ protected function _mapFileToCase($file, $category) { |
|
|
$testCase = substr($file, 0, -8);
|
|
|
$testCase = str_replace(DS, '/', $testCase);
|
|
|
|
|
|
- if ($testCase = preg_replace('@.*Test\/cases\/@', '', $testCase)) {
|
|
|
+ if ($testCase = preg_replace('@.*Test\/Case\/@', '', $testCase)) {
|
|
|
|
|
|
if ($category === 'core') {
|
|
|
- $testCase = str_replace('lib/Cake/Test/Case/', '', $testCase);
|
|
|
+ $testCase = str_replace('lib/Cake', '', $testCase);
|
|
|
}
|
|
|
|
|
|
return $testCase;
|
|
|
0 comments on commit
13fe6ec