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:
jperras 2009-05-28 17:44:41 +00:00
parent f0752feeec
commit a6017e6f6a
2 changed files with 5 additions and 1 deletions

View file

@ -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);

View file

@ -467,7 +467,8 @@ class CodeCoverageManager {
$folderPrefixMap = array(
'behaviors' => 'models',
'components' => 'controllers',
'helpers' => 'views'
'helpers' => 'views',
'datasources' => 'models'
);
foreach ($folderPrefixMap as $dir => $prefix) {