Example #1
0
 /**
  * Distribution constructor.
  *
  * @param Backup $backup
  */
 public function __construct(Backup $backup)
 {
     $this->backup = $backup;
     $local = new LeagueFilesystem(new Local($this->backup->getLocalWorkingDirectory(), LOCK_EX, Local::SKIP_LINKS), ['visibility' => AdapterInterface::VISIBILITY_PUBLIC]);
     $this->backup->manager = new MountManager(['local' => $local, 'remote' => $this->backup->remote->remote]);
 }
Example #2
0
 /**
  * @test
  */
 public function returns_correct_local_directory()
 {
     $backup = new Backup($this->dropboxInstance(), $this->working);
     $this->assertEquals($this->working, $backup->getLocalWorkingDirectory());
 }