summaryrefslogtreecommitdiff
path: root/t/Webmail.t
diff options
context:
space:
mode:
Diffstat (limited to 't/Webmail.t')
-rw-r--r--t/Webmail.t7
1 files changed, 2 insertions, 5 deletions
diff --git a/t/Webmail.t b/t/Webmail.t
index 5346d2c..970b7bf 100644
--- a/t/Webmail.t
+++ b/t/Webmail.t
@@ -5,12 +5,10 @@ use utf8;
use Test::More;
use Test::Mojo;
-use JWebmail::Model::ReadMails::MockJSON;
-
use constant DEFAULT_LANGUAGE => 'en';
-my $user = JWebmail::Model::ReadMails::MockJSON::VALID_USER;
-my $pw = JWebmail::Model::ReadMails::MockJSON::VALID_PW;
+my $user = 'mockmaildir@example.org';
+my $pw = '12345';
my $t = Test::Mojo->new('JWebmail', {
@@ -19,7 +17,6 @@ my $t = Test::Mojo->new('JWebmail', {
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);