Bug 35918: Add test
Signed-off-by: Magnus Enger <magnus@libriotech.no> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
This commit is contained in:
parent
06e698517f
commit
da27222359
|
|
@ -1086,7 +1086,7 @@ subtest 'checkpw() return values tests' => sub {
|
|||
|
||||
subtest 'AutoLocation' => sub {
|
||||
|
||||
plan tests => 6;
|
||||
plan tests => 7;
|
||||
|
||||
$schema->storage->txn_begin;
|
||||
|
||||
|
|
@ -1131,6 +1131,13 @@ subtest 'AutoLocation' => sub {
|
|||
is( $userid, $patron->userid );
|
||||
is( $template, undef );
|
||||
|
||||
my $other_library = $builder->build_object( { class => 'Koha::Libraries', value => { branchip => '127.0.0.1' } } );
|
||||
$patron->library->branchip('127.0.0.1')->store;
|
||||
( $userid, $cookie, $sessionID, $flags, $template ) =
|
||||
C4::Auth::checkauth( $cgi, 0, { catalogue => 1 }, 'intranet' );
|
||||
my $session = C4::Auth::get_session($sessionID);
|
||||
is( $session->param('branch'), $patron->branchcode );
|
||||
|
||||
$schema->storage->txn_rollback;
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue