Skip to content

Commit

Permalink
Fixing issues with schema shell test when run in certain group combin…
Browse files Browse the repository at this point in the history
…ations.
  • Loading branch information
markstory committed Oct 19, 2010
1 parent 6900f47 commit 6291f1b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cake/tests/cases/console/shells/schema.test.php
Expand Up @@ -409,6 +409,9 @@ 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.');

$schema = new DbAclSchema();
$db->execute($db->dropSchema($schema, 'acos'));
}

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

$schema = new CakeSchema(array(
'acos' => array(
'id' => array('type' => 'integer')
)
));
$db->execute($db->dropSchema($schema, 'acos'));
}
}

0 comments on commit 6291f1b

Please sign in to comment.