From 926ec7a6b85e6e3f7335a8c5ddcccd51937ee2d8 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Fri, 8 Sep 2023 23:32:10 +0200 Subject: added a build configuration step --- t/Webmail.t | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 't/Webmail.t') 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); -- cgit v1.2.3