mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-01 07:09:46 +00:00
Fixing fixtures path when using a fixture inside a plugin.
This commit is contained in:
parent
c5a41913c3
commit
8cab87fd8e
1 changed files with 1 additions and 2 deletions
|
@ -765,11 +765,10 @@ class CakeTestCase extends UnitTestCase {
|
||||||
$pluginName = $parts[1];
|
$pluginName = $parts[1];
|
||||||
$fixture = $parts[2];
|
$fixture = $parts[2];
|
||||||
$fixturePaths = array(
|
$fixturePaths = array(
|
||||||
APP . 'plugins' . DS . $pluginName . DS . 'tests' . DS . 'fixtures',
|
App::pluginPath($pluginName) . 'tests' . DS . 'fixtures',
|
||||||
TESTS . 'fixtures',
|
TESTS . 'fixtures',
|
||||||
VENDORS . 'tests' . DS . 'fixtures'
|
VENDORS . 'tests' . DS . 'fixtures'
|
||||||
);
|
);
|
||||||
$fixturesPaths[0] = App::pluginPath($pluginName) . DS . 'tests' . DS . 'fixtures';
|
|
||||||
} else {
|
} else {
|
||||||
$fixturePaths = array(
|
$fixturePaths = array(
|
||||||
TESTS . 'fixtures',
|
TESTS . 'fixtures',
|
||||||
|
|
Loading…
Add table
Reference in a new issue