Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updating code coverage manager to work with application-level datasou…

…rces.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8179 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information...
commit a6017e6f6a6db09f4dca294a36172831dc2296d5 1 parent f0752fe
Joel Perras jperras authored
3  cake/tests/cases/libs/code_coverage_manager.test.php
View
@@ -116,6 +116,9 @@ function testGetTestObjectFileNameFromTestCaseFile() {
$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);
3  cake/tests/lib/code_coverage_manager.php
View
@@ -467,7 +467,8 @@ function __testObjectFileFromCaseFile($file, $isApp = true) {
$folderPrefixMap = array(
'behaviors' => 'models',
'components' => 'controllers',
- 'helpers' => 'views'
+ 'helpers' => 'views',
+ 'datasources' => 'models'
);
foreach ($folderPrefixMap as $dir => $prefix) {
Please sign in to comment.
Something went wrong with that request. Please try again.