projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c69b98e
)
File Test: Konfiguration für den Test korrekt setzen
author
Sven Schöling
<s.schoeling@linet-services.de>
Mon, 17 Jul 2017 12:11:58 +0000
(14:11 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Mon, 17 Jul 2017 12:11:58 +0000
(14:11 +0200)
t/file/filesystem.t
patch
|
blob
|
history
diff --git
a/t/file/filesystem.t
b/t/file/filesystem.t
index
6c22e3d
..
d35a95f
100644
(file)
--- 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 = @_;