Lines 1026-1032
subtest 'get_cataloguing_page_permissions() tests' => sub {
Link Here
|
1026 |
|
1026 |
|
1027 |
subtest 'AutoLocation' => sub { |
1027 |
subtest 'AutoLocation' => sub { |
1028 |
|
1028 |
|
1029 |
plan tests => 6; |
1029 |
plan tests => 7; |
1030 |
|
1030 |
|
1031 |
$schema->storage->txn_begin; |
1031 |
$schema->storage->txn_begin; |
1032 |
|
1032 |
|
Lines 1071-1076
subtest 'AutoLocation' => sub {
Link Here
|
1071 |
is( $userid, $patron->userid ); |
1071 |
is( $userid, $patron->userid ); |
1072 |
is( $template, undef ); |
1072 |
is( $template, undef ); |
1073 |
|
1073 |
|
|
|
1074 |
my $other_library = $builder->build_object( { class => 'Koha::Libraries', value => { branchip => '127.0.0.1' } } ); |
1075 |
$patron->library->branchip('127.0.0.1')->store; |
1076 |
( $userid, $cookie, $sessionID, $flags, $template ) = |
1077 |
C4::Auth::checkauth( $cgi, 0, { catalogue => 1 }, 'intranet' ); |
1078 |
my $session = C4::Auth::get_session($sessionID); |
1079 |
is( $session->param('branch'), $patron->branchcode ); |
1080 |
|
1074 |
$schema->storage->txn_rollback; |
1081 |
$schema->storage->txn_rollback; |
1075 |
|
1082 |
|
1076 |
}; |
1083 |
}; |
1077 |
- |
|
|