Revision d3856535
Von Sven Schöling vor mehr als 7 Jahren hinzugefügt
t/file/filesystem.t | ||
---|---|---|
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";
|
||
|
||
... | ... | |
};
|
||
}
|
||
|
||
}
|
||
|
||
sub reset_state {
|
||
my %params = @_;
|
||
|
Auch abrufbar als: Unified diff
File Test: Konfiguration für den Test korrekt setzen