Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing fixtures path when using a fixture inside a plugin.

  • Loading branch information...
commit 8cab87fd8e8f8a7b18877063671d4058b6ed7b24 1 parent c5a4191
@renan renan authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  cake/tests/lib/cake_test_case.php
View
3  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',
Please sign in to comment.
Something went wrong with that request. Please try again.