From: Sven Schöling Date: Mon, 17 Jul 2017 12:11:58 +0000 (+0200) Subject: File Test: Konfiguration für den Test korrekt setzen X-Git-Tag: release-3.5.4~1005 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d38565357c95d74fb29772d4f8a35d9727623a8b;p=kivitendo-erp.git File Test: Konfiguration für den Test korrekt setzen --- 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 = @_;