/**
  * Execute the console command.
  *
  * @return void
  */
 public function fire()
 {
     $package = $this->input->getArgument('package');
     if (!is_null($path = $this->getPath())) {
         $this->config->publish($package, $path);
     } else {
         $this->config->publishPackage($package);
     }
     $this->output->writeln('<info>Configuration published for package:</info> ' . $package);
 }
 public function testBasicPathPublishing()
 {
     $pub = new Illuminate\Foundation\AssetPublisher($files = m::mock('Illuminate\\Filesystem'), __DIR__);
     $files->shouldReceive('copyDirectory')->once()->with('foo', __DIR__ . '/packages/bar')->andReturn(true);
     $this->assertTrue($pub->publish('foo', 'bar'));
 }