"Fixing path search for fixtures in the test suite"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6039 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-11-22 01:55:50 +00:00
parent 306b577368
commit c83ae0e1a9
3 changed files with 6 additions and 4 deletions

View file

@ -167,6 +167,8 @@ class CakeSchema extends Object {
$db =& ConnectionManager::getDataSource($connection);
$prefix = null;
App::import('Model', 'AppModel');
$tables = array();
$currentTables = $db->sources();
if (isset($db->config['prefix'])) {

View file

@ -448,9 +448,9 @@ class CakeTestCase extends UnitTestCase {
if (strpos($fixture, 'core.') === 0) {
$fixture = substr($fixture, strlen('core.'));
$fixturePaths = array(
CAKE_CORE_INCLUDE_PATH . DS . 'cake' . DS . 'tests' . DS . 'fixtures'
);
foreach (Configure::corePaths('cake') as $key => $path) {
$fixturePaths[] = $path . DS . 'tests' . DS . 'fixtures';
}
} elseif (strpos($fixture, 'app.') === 0) {
$fixture = substr($fixture, strlen('app.'));
$fixturePaths = array(