use SL::InstanceConfiguration;
use SL::Request;
-sub _login {
- my ($client, $login) = @_;
+sub login {
+ SL::LxOfficeConf->read;
- die 'need client and login' unless $client && $login;
+ my $client = 'Unit-Tests';
+ my $login = 'unittests';
package main;
return 1;
}
-sub login {
- SL::LxOfficeConf->read;
-
- my $login = shift || $::lx_office_conf{testing}{login} || 'demo';
- my $client = shift || $::lx_office_conf{testing}{client} || '';
- _login($client, $login);
-}
-
sub templates_cache_writable {
my $dir = $::lx_office_conf{paths}->{userspath} . '/templates-cache';
return 1 if -w $dir;