Skip to content

Commit

Permalink
Fixing some errors on SchemaShellTest
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Jul 8, 2010
1 parent da9d1c6 commit 38d8e03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/tests/cases/console/libs/schema.test.php
Expand Up @@ -283,7 +283,7 @@ public function testGenerateSnapshot() {
$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();
}
Expand Down Expand Up @@ -406,7 +406,7 @@ public function testCreateWithTableArgs() {
$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));
Expand Down

0 comments on commit 38d8e03

Please sign in to comment.