Ejemplo n.º 1
0
 /**
  * @test
  */
 public function testBundles()
 {
     $processes = $this->manager->bundles(['foo'])->run(['foo' => 'bar']);
     $this->assertCount(1, $processes);
     $this->assertArrayHasKey('foo', $processes);
     $this->assertArrayNotHasKey('bar', $processes);
     $this->npm->run(['foo' => 'bar'], Argument::type(ConfigurationInterface::class))->shouldBeCalledTimes(1);
 }
Ejemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function doExecute(NpmManager $npmManager, InputInterface $input)
 {
     return $npmManager->install();
 }
Ejemplo n.º 3
0
 /**
  * @inheritDoc
  */
 public function doExecute(NpmManager $npmManager, InputInterface $input)
 {
     return $npmManager->run([$input->getArgument('npm-command')]);
 }