コード例 #1
0
 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();
 }
コード例 #2
0
ファイル: DumpDatabase.php プロジェクト: parabol/laravel-cms
 /**
  * @throws \BigName\BackupManager\ShellProcessing\ShellProcessFailed
  */
 public function execute()
 {
     return $this->shellProcessor->process($this->database->getDumpCommandLine($this->outputPath));
 }
コード例 #3
0
 /**
  * @throws \BigName\BackupManager\ShellProcessing\ShellProcessFailed
  */
 public function execute()
 {
     return $this->shellProcessor->process($this->database->getRestoreCommandLine($this->inputPath));
 }