/** * 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); }
public function getOptionParser() { $parser = parent::getOptionParser(); $parser->addOption('prefix', ['help' => 'Realiza un "bake" con el prefijo dado.']); return $parser; }