mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +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];
|
||||
$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',
|
||||
|
|
Loading…
Add table
Reference in a new issue