Fixing all tasks include.

Removing drop table queries that cause other tests to fail.
This commit is contained in:
mark_story 2010-09-25 01:25:42 -04:00
parent 26057c59c4
commit 714d8298c4
3 changed files with 3 additions and 6 deletions

View file

@ -419,8 +419,6 @@ class SchemaShellTest extends CakeTestCase {
$this->assertTrue(in_array($db->config['prefix'] . 'acos', $sources), 'acos should be present.');
$this->assertFalse(in_array($db->config['prefix'] . 'aros', $sources), 'aros should not be found.');
$this->assertFalse(in_array('aros_acos', $sources), 'aros_acos should not be found.');
$db->execute('DROP TABLE ' . $db->config['prefix'] . 'acos');
}
/**
@ -486,6 +484,5 @@ class SchemaShellTest extends CakeTestCase {
$db =& ConnectionManager::getDataSource('test');
$sources = $db->listSources();
$this->assertTrue(in_array($db->config['prefix'] . 'acos', $sources));
$db->execute('DROP TABLE ' . $db->config['prefix'] . 'acos'); }
}
}

View file

@ -39,7 +39,7 @@ class AllTests extends PHPUnit_Framework_TestSuite {
$console = CORE_TEST_CASES . DS . 'console' . DS;
$suite->addTestFile($console . 'all_shells.test.php');
$suite->addTestFile($console . 'libs' . DS . 'all_tasks.test.php');
$suite->addTestFile($console . 'all_tasks.test.php');
$suite->addTestFile($path . 'all_behaviors.test.php');
$suite->addTestFile($path . 'all_cache_engines.test.php');

View file

@ -347,7 +347,7 @@ class AclBehaviorTest extends CakeTestCase {
);
$this->Aro->save($aroData);
$Person =& new AclPerson();
$Person = new AclPerson();
$data = array(
'AclPerson' => array(
'name' => 'Trent',