mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Updating CommandListShell to use CakePlugin
This commit is contained in:
parent
e78345035a
commit
685b7f8562
1 changed files with 4 additions and 3 deletions
|
@ -47,7 +47,7 @@ class CommandListTest extends CakeTestCase {
|
||||||
LIBS . 'tests' . DS . 'test_app' . DS . 'Console' . DS . 'Command' . DS
|
LIBS . 'tests' . DS . 'test_app' . DS . 'Console' . DS . 'Command' . DS
|
||||||
)
|
)
|
||||||
), true);
|
), true);
|
||||||
App::objects('plugin', null, false);
|
CakePlugin::loadAll();
|
||||||
|
|
||||||
$out = new TestStringOutput();
|
$out = new TestStringOutput();
|
||||||
$in = $this->getMock('ConsoleInput', array(), array(), '', false);
|
$in = $this->getMock('ConsoleInput', array(), array(), '', false);
|
||||||
|
@ -67,6 +67,7 @@ class CommandListTest extends CakeTestCase {
|
||||||
function tearDown() {
|
function tearDown() {
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
unset($this->Shell);
|
unset($this->Shell);
|
||||||
|
CakePlugin::unload();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -150,8 +151,8 @@ class CommandListTest extends CakeTestCase {
|
||||||
|
|
||||||
$find = '<shell name="bake" call_as="bake" provider="CORE" help="bake -h"/>';
|
$find = '<shell name="bake" call_as="bake" provider="CORE" help="bake -h"/>';
|
||||||
$this->assertContains($find, $output);
|
$this->assertContains($find, $output);
|
||||||
|
|
||||||
$find = '<shell name="welcome" call_as="test_plugin_two.welcome" provider="TestPluginTwo" help="test_plugin_two.welcome -h"/>';
|
$find = '<shell name="welcome" call_as="TestPluginTwo.welcome" provider="TestPluginTwo" help="TestPluginTwo.welcome -h"/>';
|
||||||
$this->assertContains($find, $output);
|
$this->assertContains($find, $output);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue