|
Lines 818-824
subtest 'check_cookie_auth' => sub {
Link Here
|
| 818 |
}; |
818 |
}; |
| 819 |
|
819 |
|
| 820 |
subtest 'checkauth & check_cookie_auth' => sub { |
820 |
subtest 'checkauth & check_cookie_auth' => sub { |
| 821 |
plan tests => 33; |
821 |
plan tests => 34; |
| 822 |
|
822 |
|
| 823 |
# flags = 4 => { catalogue => 1 } |
823 |
# flags = 4 => { catalogue => 1 } |
| 824 |
my $patron = $builder->build_object( { class => 'Koha::Patrons', value => { flags => 4 } } ); |
824 |
my $patron = $builder->build_object( { class => 'Koha::Patrons', value => { flags => 4 } } ); |
|
Lines 844-849
subtest 'checkauth & check_cookie_auth' => sub {
Link Here
|
| 844 |
like( $stdout, qr{<title\s*>\s*Log in to your account} ); |
844 |
like( $stdout, qr{<title\s*>\s*Log in to your account} ); |
| 845 |
$sessionID = ( $stdout =~ m{Set-Cookie: CGISESSID=((\d|\w)+);} ) ? $1 : undef; |
845 |
$sessionID = ( $stdout =~ m{Set-Cookie: CGISESSID=((\d|\w)+);} ) ? $1 : undef; |
| 846 |
ok($sessionID); |
846 |
ok($sessionID); |
|
|
847 |
my $sameSite_invalid_header = ( $stdout =~ /(Samesite: Lax)/ ) ? $1 : undef; |
| 848 |
is( $sameSite_invalid_header, undef, 'Response does not contain invalid response header Samesite' ); |
| 847 |
close STDOUT; |
849 |
close STDOUT; |
| 848 |
}; |
850 |
}; |
| 849 |
|
851 |
|
| 850 |
- |
|
|