Exemple #1
0
 public function testBuildModuleWithOverride()
 {
     $args = ['name' => 'name', 'description' => 'description', 'package' => 'package', 'version' => 'version', 'source' => 'source'];
     $input = $this->provideInput($args);
     $output = new BufferedOutput();
     $saving = new Saving($this->provideServices($this->provideModule($args), true, true, $input, $output));
     $this->assertSame(ITask::NO_ERROR_CODE, $saving->execute($input, $output));
 }
Exemple #2
0
 /**
  * @param $input
  * @param $output
  * @return bool
  */
 private function installModule($input, $output)
 {
     $task = new Saving($this->getServices());
     return $task->execute($input, $output);
 }