exec('rm -rf /symlinks');
}
+ public function test_restore_with_invalid_zip_path_shows_warning()
+ {
+ chdir('/var/www/bookstack');
+
+ $result = $this->runCommand('restore', [
+ 'backup-zip' => '/cats/dogs.zip',
+ '--app-directory' => '/var/www/bookstack',
+ ]);
+
+ $result->assertStderrContains("Could not find ZIP file for restoration at provided path [/cats/dogs.zip].");
+ }
+
protected function buildZip(callable $builder): string
{
$zipFile = tempnam(sys_get_temp_dir(), 'cli-test');