function it_should_execute_the_database_dump_command(Database $database, ShellProcessor $shellProcessor)
 {
     $database->getDumpCommandLine('path')->willReturn('dump path');
     $shellProcessor->process('dump path')->shouldBeCalled();
     $this->beConstructedWith($database, 'path', $shellProcessor);
     $this->execute();
 }
Beispiel #2
0
 /**
  * @throws \BackupManager\ShellProcessing\ShellProcessFailed
  */
 public function execute()
 {
     return $this->shellProcessor->process($this->database->getDumpCommandLine($this->outputPath));
 }
 /**
  * @throws \BackupManager\ShellProcessing\ShellProcessFailed
  */
 public function execute()
 {
     return $this->shellProcessor->process($this->database->getRestoreCommandLine($this->inputPath));
 }