mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
parent
2840dc74d3
commit
2a9a103d62
3 changed files with 7 additions and 14 deletions
|
@ -47,11 +47,11 @@ class ConsoleShell extends AppShell {
|
||||||
public $models = array();
|
public $models = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Override initialize of the Shell
|
* Override startup of the Shell
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function initialize() {
|
public function startup() {
|
||||||
App::uses('Dispatcher', 'Routing');
|
App::uses('Dispatcher', 'Routing');
|
||||||
$this->Dispatcher = new Dispatcher();
|
$this->Dispatcher = new Dispatcher();
|
||||||
$this->models = App::objects('Model');
|
$this->models = App::objects('Model');
|
||||||
|
|
|
@ -49,23 +49,16 @@ class SchemaShell extends AppShell {
|
||||||
*/
|
*/
|
||||||
protected $_dry = null;
|
protected $_dry = null;
|
||||||
|
|
||||||
/**
|
|
||||||
* Override initialize
|
|
||||||
*
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
public function initialize() {
|
|
||||||
$this->_welcome();
|
|
||||||
$this->out('Cake Schema Shell');
|
|
||||||
$this->hr();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Override startup
|
* Override startup
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function startup() {
|
public function startup() {
|
||||||
|
$this->_welcome();
|
||||||
|
$this->out('Cake Schema Shell');
|
||||||
|
$this->hr();
|
||||||
|
|
||||||
$name = $path = $connection = $plugin = null;
|
$name = $path = $connection = $plugin = null;
|
||||||
if (!empty($this->params['name'])) {
|
if (!empty($this->params['name'])) {
|
||||||
$name = $this->params['name'];
|
$name = $this->params['name'];
|
||||||
|
|
|
@ -188,7 +188,7 @@ class SchemaShellTest extends CakeTestCase {
|
||||||
$this->Shell->args = array('TestPlugin.schema');
|
$this->Shell->args = array('TestPlugin.schema');
|
||||||
$this->Shell->startup();
|
$this->Shell->startup();
|
||||||
$this->Shell->expects($this->exactly(2))->method('_stop');
|
$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->view();
|
||||||
|
|
||||||
$this->Shell->args = array();
|
$this->Shell->args = array();
|
||||||
|
|
Loading…
Reference in a new issue