diff options
Diffstat (limited to '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); |