Permalink
Browse files

Fixing fixtures path when using a fixture inside a plugin.

  • Loading branch information...
renan committed Nov 11, 2009
1 parent c5a4191 commit 8cab87fd8e8f8a7b18877063671d4058b6ed7b24
Showing with 1 addition and 2 deletions.
  1. +1 −2 cake/tests/lib/cake_test_case.php
@@ -765,11 +765,10 @@ function _loadFixtures() {
$pluginName = $parts[1];
$fixture = $parts[2];
$fixturePaths = array(
- APP . 'plugins' . DS . $pluginName . DS . 'tests' . DS . 'fixtures',
+ App::pluginPath($pluginName) . 'tests' . DS . 'fixtures',
TESTS . 'fixtures',
VENDORS . 'tests' . DS . 'fixtures'
);
- $fixturesPaths[0] = App::pluginPath($pluginName) . DS . 'tests' . DS . 'fixtures';
} else {
$fixturePaths = array(
TESTS . 'fixtures',

0 comments on commit 8cab87f

Please sign in to comment.