mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Fixing failing tests in Schema shell.
This commit is contained in:
parent
193721a0eb
commit
f1ee46749b
2 changed files with 9 additions and 2 deletions
|
@ -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 @@ 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',
|
||||
|
|
Loading…
Add table
Reference in a new issue