Skip to content
Permalink
Browse files

Fixing failing tests in Schema shell.

  • Loading branch information...
markstory committed Oct 10, 2010
1 parent 193721a commit f1ee46749bda81456efd2721291fcc7b622dcd3a
Showing with 9 additions and 2 deletions.
  1. +7 −0 cake/console/libs/schema.php
  2. +2 −2 cake/tests/cases/console/libs/schema.test.php
@@ -40,6 +40,13 @@ class SchemaShell extends Shell {
*/
private $__dry = null;
/**
* Schema class being used.
*
* @var CakeSchema
*/
public $Schema;
/**
* Override initialize
*
@@ -146,7 +146,7 @@ public function testStartup() {
$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 @@ public function testStartup() {
$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',

0 comments on commit f1ee467

Please sign in to comment.
You can’t perform that action at this time.