Lines 1270-1276
subtest 'checkpw() return values tests' => sub {
Link Here
|
1270 |
|
1270 |
|
1271 |
subtest 'AutoLocation' => sub { |
1271 |
subtest 'AutoLocation' => sub { |
1272 |
|
1272 |
|
1273 |
plan tests => 6; |
1273 |
plan tests => 7; |
1274 |
|
1274 |
|
1275 |
$schema->storage->txn_begin; |
1275 |
$schema->storage->txn_begin; |
1276 |
|
1276 |
|
Lines 1315-1320
subtest 'AutoLocation' => sub {
Link Here
|
1315 |
is( $userid, $patron->userid ); |
1315 |
is( $userid, $patron->userid ); |
1316 |
is( $template, undef ); |
1316 |
is( $template, undef ); |
1317 |
|
1317 |
|
|
|
1318 |
my $other_library = $builder->build_object( { class => 'Koha::Libraries', value => { branchip => '127.0.0.1' } } ); |
1319 |
$patron->library->branchip('127.0.0.1')->store; |
1320 |
( $userid, $cookie, $sessionID, $flags, $template ) = |
1321 |
C4::Auth::checkauth( $cgi, 0, { catalogue => 1 }, 'intranet' ); |
1322 |
my $session = C4::Auth::get_session($sessionID); |
1323 |
is( $session->param('branch'), $patron->branchcode ); |
1324 |
|
1318 |
$schema->storage->txn_rollback; |
1325 |
$schema->storage->txn_rollback; |
1319 |
|
1326 |
|
1320 |
}; |
1327 |
}; |
1321 |
- |
|
|