mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Updating code coverage manager to work with application-level datasources.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8179 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
f0752feeec
commit
a6017e6f6a
2 changed files with 5 additions and 1 deletions
|
@ -116,6 +116,9 @@ class CodeCoverageManagerTest extends CakeTestCase {
|
|||
$expected = $manager->__testObjectFileFromCaseFile('models/some_file.test.php', true);
|
||||
$this->assertIdentical(APP.'models'.DS.'some_file.php', $expected);
|
||||
|
||||
$expected = $manager->__testObjectFileFromCaseFile('datasources/some_file.test.php', true);
|
||||
$this->assertIdentical(APP.'models'.DS.'datasources'.DS.'some_file.php', $expected);
|
||||
|
||||
$expected = $manager->__testObjectFileFromCaseFile('controllers/some_file.test.php', true);
|
||||
$this->assertIdentical(APP.'controllers'.DS.'some_file.php', $expected);
|
||||
|
||||
|
|
|
@ -467,7 +467,8 @@ class CodeCoverageManager {
|
|||
$folderPrefixMap = array(
|
||||
'behaviors' => 'models',
|
||||
'components' => 'controllers',
|
||||
'helpers' => 'views'
|
||||
'helpers' => 'views',
|
||||
'datasources' => 'models'
|
||||
);
|
||||
|
||||
foreach ($folderPrefixMap as $dir => $prefix) {
|
||||
|
|
Loading…
Reference in a new issue