/** * 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]); }
/** * @test */ public function returns_correct_local_directory() { $backup = new Backup($this->dropboxInstance(), $this->working); $this->assertEquals($this->working, $backup->getLocalWorkingDirectory()); }