summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/I18N2.t2
-rw-r--r--t/Webmail.t7
2 files changed, 5 insertions, 4 deletions
diff --git a/t/I18N2.t b/t/I18N2.t
index f9c6285..40e8623 100644
--- a/t/I18N2.t
+++ b/t/I18N2.t
@@ -6,7 +6,7 @@ use Test::More;
use JWebmail::Plugin::I18N2;
-*add_option = \&JWebmail::Plugin::I18N2::Match::__add_option_no_override;
+*add_option = \&JWebmail::Plugin::I18N2::Match::Role::__i18n2_add_option_no_override;
subtest 'add_option' => sub {
diff --git a/t/Webmail.t b/t/Webmail.t
index 45eeda9..9218fb1 100644
--- a/t/Webmail.t
+++ b/t/Webmail.t
@@ -16,14 +16,15 @@ my $pw = JWebmail::Model::ReadMails::MockJSON::VALID_PW;
my $t = Test::Mojo->new('JWebmail', {
development => { read_mock => 'JWebmail::Model::ReadMails::MockJSON', block_writes => 1 },
i18n => { default_language => DEFAULT_LANGUAGE },
+ session => { secure => 'none' },
});
$t->get_ok('/')->status_is(200);
subtest login => sub {
- $t->post_ok('/login', form => {userid => $user, password => 'x'})->status_is(400);
- $t->post_ok('/login', form => {userid => $user, password => 'abcde'})->status_is(401);
- $t->post_ok('/login', form => {userid => $user, password => $pw})->status_is(303);
+ $t->post_ok('/', form => {userid => $user, password => 'x'})->status_is(400);
+ $t->post_ok('/', form => {userid => $user, password => 'abcde'})->status_is(401);
+ $t->post_ok('/', form => {userid => $user, password => $pw})->status_is(303);
};