mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixing some errors on SchemaShellTest
This commit is contained in:
parent
da9d1c6b06
commit
38d8e03363
1 changed files with 2 additions and 2 deletions
|
@ -283,7 +283,7 @@ class SchemaShellTest extends CakeTestCase {
|
|||
$this->Shell->Schema->expects($this->at(0))->method('write')->will($this->returnValue(true));
|
||||
|
||||
$this->Shell->Schema->expects($this->at(1))->method('read');
|
||||
$this->Shell->Schema->expects($this->at(1))->method('write')->with(array('schema data', 'file' => 'schema_1.php'));
|
||||
$this->Shell->Schema->expects($this->at(1))->method('write')->with(array('schema data', 'file' => 'schema_0.php'));
|
||||
|
||||
$this->Shell->generate();
|
||||
}
|
||||
|
@ -406,7 +406,7 @@ class SchemaShellTest extends CakeTestCase {
|
|||
$this->Shell->expects($this->any())->method('in')->will($this->returnValue('y'));
|
||||
$this->Shell->create();
|
||||
|
||||
$db =& ConnectionManager::getDataSource('test_suite');
|
||||
$db =& ConnectionManager::getDataSource('test');
|
||||
$sources = $db->listSources();
|
||||
$this->assertTrue(in_array($db->config['prefix'] . 'acos', $sources));
|
||||
$this->assertFalse(in_array($db->config['prefix'] . 'aros', $sources));
|
||||
|
|
Loading…
Reference in a new issue