Fixing failing tests in Schema shell.

This commit is contained in:
mark_story 2010-10-10 00:23:25 -04:00
parent 193721a0eb
commit f1ee46749b
2 changed files with 9 additions and 2 deletions

View file

@ -40,6 +40,13 @@ class SchemaShell extends Shell {
*/
private $__dry = null;
/**
* Schema class being used.
*
* @var CakeSchema
*/
public $Schema;
/**
* Override initialize
*

View file

@ -146,7 +146,7 @@ class SchemaShellTest extends CakeTestCase {
$this->assertEqual(strtolower($this->Shell->Schema->name), strtolower(APP_DIR));
$this->assertEqual($this->Shell->Schema->file, 'schema.php');
unset($this->Shell->Schema);
$this->Shell->Schema = null;
$this->Shell->params = array(
'name' => 'TestSchema'
);
@ -156,7 +156,7 @@ class SchemaShellTest extends CakeTestCase {
$this->assertEqual($this->Shell->Schema->connection, 'default');
$this->assertEqual($this->Shell->Schema->path, APP . 'config' . DS . 'schema');
unset($this->Shell->Schema);
$this->Shell->Schema = null;
$this->Shell->params = array(
'file' => 'other_file.php',
'connection' => 'test',