mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-07 12:02:41 +00:00
Merge pull request #103 from tPl0ch/2.0-bake-controller
2.0 Shell - Wrong underscore naming of Shells and Tasks
This commit is contained in:
commit
c5a2efc5dd
3 changed files with 15 additions and 2 deletions
|
@ -800,4 +800,17 @@ TEXT;
|
|||
TEXT;
|
||||
$this->assertEquals($expected, $result, 'Text not wrapped.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Testing camel cased naming of tasks
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function testShellNaming() {
|
||||
$this->Shell->tasks = array('TestApple');
|
||||
$this->Shell->loadTasks();
|
||||
$expected = 'TestApple';
|
||||
$this->assertEqual($expected, $this->Shell->TestApple->name);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue