Skip to content

Commit

Permalink
Fixing all tasks include.
Browse files Browse the repository at this point in the history
Removing drop table queries that cause other tests to fail.
  • Loading branch information
markstory committed Sep 25, 2010
1 parent 26057c5 commit 714d829
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions cake/tests/cases/console/libs/schema.test.php
Expand Up @@ -419,8 +419,6 @@ public function testCreateWithTableArgs() {
$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');
}

/**
Expand Down Expand Up @@ -486,6 +484,5 @@ public function testPluginDotSyntaxWithCreate() {
$db =& ConnectionManager::getDataSource('test');
$sources = $db->listSources();
$this->assertTrue(in_array($db->config['prefix'] . 'acos', $sources));

$db->execute('DROP TABLE ' . $db->config['prefix'] . 'acos'); }
}
}
2 changes: 1 addition & 1 deletion cake/tests/cases/libs/all_tests.test.php
Expand Up @@ -39,7 +39,7 @@ public static function suite() {
$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');
Expand Down
2 changes: 1 addition & 1 deletion cake/tests/cases/libs/model/behaviors/acl.test.php
Expand Up @@ -347,7 +347,7 @@ function testAfterSaveUpdateParentIdNotNull() {
);
$this->Aro->save($aroData);

$Person =& new AclPerson();
$Person = new AclPerson();
$data = array(
'AclPerson' => array(
'name' => 'Trent',
Expand Down

0 comments on commit 714d829

Please sign in to comment.