/** * Test the main function. * * @return void */ public function testMain() { $this->Shell->loadTasks(); $this->Shell->main(); $output = $this->out->messages(); $expected = ['The following commands can be used to generate skeleton code for your application.', '', '<info>Available bake commands:</info>', '', '- all', '- behavior', '- cell', '- component', '- controller', '- fixture', '- form', '- helper', '- mailer', '- model', '- plugin', '- shell', '- shell_helper', '- task', '- template', '- test', '', 'By using <info>`cake bake [name]`</info> you can invoke a specific bake task.']; $this->assertSame($expected, $output); }