Fixing fixtures path when using a fixture inside a plugin.

This commit is contained in:
renan.saddam 2009-11-11 20:14:24 -02:00
parent c5a41913c3
commit 8cab87fd8e

View file

@ -765,11 +765,10 @@ class CakeTestCase extends UnitTestCase {
$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',