Revision d3856535
Von Sven Schöling vor mehr als 7 Jahren hinzugefügt
t/file/filesystem.t | ||
---|---|---|
15 | 15 |
my $storage_dir = "$temp_dir/storage"; |
16 | 16 |
|
17 | 17 |
mkdir($storage_dir) || die $!; |
18 |
|
|
19 |
my $db = SL::DB::Object->new->db;
|
|
20 |
$db->dbh->do("UPDATE defaults SET doc_files = 't'");
|
|
21 |
$db->dbh->do("UPDATE defaults SET doc_files_rootpath = ?", undef, $storage_dir);
|
|
18 |
{ |
|
19 |
local $::lx_office_conf{paths}->{document_path} = $storage_dir;
|
|
20 |
$::instance_conf->data;
|
|
21 |
local $::instance_conf->{data}{doc_files} = 1;
|
|
22 | 22 |
|
23 | 23 |
my $scannerfile = "${temp_dir}/f2"; |
24 | 24 |
|
... | ... | |
113 | 113 |
}; |
114 | 114 |
} |
115 | 115 |
|
116 |
} |
|
117 |
|
|
116 | 118 |
sub reset_state { |
117 | 119 |
my %params = @_; |
118 | 120 |
|
Auch abrufbar als: Unified diff
File Test: Konfiguration für den Test korrekt setzen