public function testRegisteredCommands() { $refreshCommand = Artisan::find('js-localization:refresh'); $this->assertInstanceOf('JsLocalization\\Console\\RefreshCommand', $refreshCommand); $commandTester = new CommandTester($refreshCommand); $commandTester->execute(array()); $this->assertEquals("Refreshing the message cache...\n", $commandTester->getDisplay()); }