mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
"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:
parent
306b577368
commit
c83ae0e1a9
3 changed files with 6 additions and 4 deletions
|
@ -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'])) {
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue