mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-06 03:22:39 +00:00
Add Shell::$plugin and update getOptionParser()
Adding a plugin property allows the correct usage/help information to be generated. Fixes #2359
This commit is contained in:
parent
47b2f3e70c
commit
205bfb506f
4 changed files with 26 additions and 1 deletions
|
@ -422,6 +422,8 @@ class ShellDispatcherTest extends CakeTestCase {
|
|||
$Dispatcher = new TestShellDispatcher();
|
||||
$result = $Dispatcher->getShell('test_plugin.example');
|
||||
$this->assertInstanceOf('ExampleShell', $result);
|
||||
$this->assertEquals('TestPlugin', $result->plugin);
|
||||
$this->assertEquals('Example', $result->name);
|
||||
|
||||
$Dispatcher = new TestShellDispatcher();
|
||||
$result = $Dispatcher->getShell('TestPlugin.example');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue