Esempio n. 1
0
 public function testPackageAssetPublishing()
 {
     $pub = new Illuminate\Foundation\AssetPublisher($files = m::mock('Illuminate\\Filesystem'), __DIR__);
     $pub->setPackagePath(__DIR__ . '/vendor');
     $files->shouldReceive('copyDirectory')->once()->with(__DIR__ . '/vendor/foo/public', __DIR__ . '/packages/foo')->andReturn(true);
     $this->assertTrue($pub->publishPackage('foo'));
     $pub = new Illuminate\Foundation\AssetPublisher($files2 = m::mock('Illuminate\\Filesystem'), __DIR__);
     $files2->shouldReceive('copyDirectory')->once()->with(__DIR__ . '/custom-packages/foo/public', __DIR__ . '/packages/foo')->andReturn(true);
     $this->assertTrue($pub->publishPackage('foo', __DIR__ . '/custom-packages'));
 }
 /**
  * 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);
 }
Esempio n. 3
0
 /**
  * Execute the console command.
  *
  * @return void
  */
 public function fire()
 {
     $package = $this->input->getArgument('package');
     $this->config->publishPackage($package);
     $this->output->writeln('<info>Configuration published for package:</info> ' . $package);
 }