mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing issues with schema shell test when run in certain group combinations.
This commit is contained in:
parent
6900f470ad
commit
6291f1b1d1
1 changed files with 10 additions and 0 deletions
|
@ -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'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue