Skip to content
Permalink
Browse files

Fix bad xml help generation.

Fixes #2619
  • Loading branch information...
markstory committed Feb 26, 2012
1 parent 2840dc7 commit 2a9a103d62d0a4ea8520882ba68ad01367ab99e3
@@ -47,11 +47,11 @@ class ConsoleShell extends AppShell {
public $models = array();
/**
* Override initialize of the Shell
* Override startup of the Shell
*
* @return void
*/
public function initialize() {
public function startup() {
App::uses('Dispatcher', 'Routing');
$this->Dispatcher = new Dispatcher();
$this->models = App::objects('Model');
@@ -49,23 +49,16 @@ class SchemaShell extends AppShell {
*/
protected $_dry = null;
/**
* Override initialize
*
* @return string
*/
public function initialize() {
$this->_welcome();
$this->out('Cake Schema Shell');
$this->hr();
}
/**
* Override startup
*
* @return void
*/
public function startup() {
$this->_welcome();
$this->out('Cake Schema Shell');
$this->hr();
$name = $path = $connection = $plugin = null;
if (!empty($this->params['name'])) {
$name = $this->params['name'];
@@ -188,7 +188,7 @@ public function testViewWithPlugins() {
$this->Shell->args = array('TestPlugin.schema');
$this->Shell->startup();
$this->Shell->expects($this->exactly(2))->method('_stop');
$this->Shell->expects($this->exactly(2))->method('out');
$this->Shell->expects($this->atLeastOnce())->method('out');
$this->Shell->view();
$this->Shell->args = array();

0 comments on commit 2a9a103

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