diff options
author | Jannis M. Hoffmann <jannis@fehcom.de> | 2023-09-08 23:32:10 +0200 |
---|---|---|
committer | Jannis M. Hoffmann <jannis@fehcom.de> | 2023-09-08 23:32:10 +0200 |
commit | 926ec7a6b85e6e3f7335a8c5ddcccd51937ee2d8 (patch) | |
tree | b7a420a919d0146f2a0bd2e1e577b795fcb99202 /t/Webmail.t | |
parent | 4510e3720274865996ef056f1687997ba0b482be (diff) |
added a build configuration step
Diffstat (limited to 't/Webmail.t')
-rw-r--r-- | t/Webmail.t | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/t/Webmail.t b/t/Webmail.t index 3deb547..c88b31a 100644 --- a/t/Webmail.t +++ b/t/Webmail.t @@ -14,12 +14,11 @@ my $pw = JWebmail::Model::ReadMails::MockJSON::VALID_PW; my $t = Test::Mojo->new('JWebmail', { - model => { read => { devel => { driver => 'JWebmail::Model::ReadMails::MockJSON' }}, - write => { devel => { block_writes => 1 }}}, - i18n => { default_language => DEFAULT_LANGUAGE, directory => 'lib/JWebmail/I18N' }, - session => { secure => 'none' }, - defaults => { scriptadmin => 'test@example.org' }, + model => { read => { virtual_user => $ENV{USER}, mailbox_path => 't/testdata/json' }}, + i18n => { default_language => DEFAULT_LANGUAGE }, + admin_mail => 'test@example.org', }); +$t->app->helper(users => sub { state $read = 'JWebmail::Model::ReadMails::MockJSON'->new($t->app->config->{model}{read}) }); $t->get_ok('/')->status_is(200); |