From d38565357c95d74fb29772d4f8a35d9727623a8b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 17 Jul 2017 14:11:58 +0200 Subject: [PATCH] =?utf8?q?File=20Test:=20Konfiguration=20f=C3=BCr=20den=20?= =?utf8?q?Test=20korrekt=20setzen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- t/file/filesystem.t | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/t/file/filesystem.t b/t/file/filesystem.t index 6c22e3d4c..d35a95faf 100644 --- a/t/file/filesystem.t +++ b/t/file/filesystem.t @@ -15,10 +15,10 @@ my $temp_dir = File::Temp::tempdir("kivi-t-file-filesystem.XXXXXX", TMPDIR => my $storage_dir = "$temp_dir/storage"; mkdir($storage_dir) || die $!; - -my $db = SL::DB::Object->new->db; -$db->dbh->do("UPDATE defaults SET doc_files = 't'"); -$db->dbh->do("UPDATE defaults SET doc_files_rootpath = ?", undef, $storage_dir); +{ +local $::lx_office_conf{paths}->{document_path} = $storage_dir; +$::instance_conf->data; +local $::instance_conf->{data}{doc_files} = 1; my $scannerfile = "${temp_dir}/f2"; @@ -113,6 +113,8 @@ sub clear_up { }; } +} + sub reset_state { my %params = @_; -- 2.20.1