function it_should_execute_the_database_restore_command(Database $database, ShellProcessor $shellProcessor)
 {
     $database->getRestoreCommandLine('path')->willReturn('restore path');
     $shellProcessor->process('restore path')->shouldBeCalled();
     $this->beConstructedWith($database, 'path', $shellProcessor);
     $this->execute();
 }
Esempio n. 2
0
 /**
  * @throws \BigName\BackupManager\ShellProcessing\ShellProcessFailed
  */
 public function execute()
 {
     return $this->shellProcessor->process($this->database->getDumpCommandLine($this->outputPath));
 }
Esempio n. 3
0
 /**
  * @throws \BigName\BackupManager\ShellProcessing\ShellProcessFailed
  */
 public function execute()
 {
     return $this->shellProcessor->process($this->database->getRestoreCommandLine($this->inputPath));
 }