Example #1
0
 /**
  * Test loading tasks from plugins
  *
  * @return void
  */
 public function testLoadTasksPlugin()
 {
     $this->_loadTestPlugin('BakeTest');
     $this->Shell->loadTasks();
     $this->assertContains('BakeTest.Widget', $this->Shell->tasks);
     $this->assertContains('BakeTest.Zerg', $this->Shell->tasks);
 }
Example #2
0
 public function getOptionParser()
 {
     $parser = parent::getOptionParser();
     $parser->addOption('prefix', ['help' => 'Realiza un "bake" con el prefijo dado.']);
     return $parser;
 }