Fixing issues with schema shell test when run in certain group combinations.

This commit is contained in:
mark_story 2010-10-18 23:26:50 -04:00
parent 6900f470ad
commit 6291f1b1d1

View file

@ -409,6 +409,9 @@ 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.');
$schema = new DbAclSchema();
$db->execute($db->dropSchema($schema, 'acos'));
}
/**
@ -474,5 +477,12 @@ class SchemaShellTest extends CakeTestCase {
$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'));
}
}