From 73503d87d3f9f87a73616bd3f4365906c87ae13e Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Mon, 9 May 2022 11:56:15 +0200 Subject: fixes for tests and packageing --- t/I18N2.t | 2 +- t/Webmail.t | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 't') 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); }; -- cgit v1.2.3