Lines 373-381
subtest 'Desks' => sub {
Link Here
|
373 |
my $library = $builder->build_object( { class => 'Koha::Libraries' } ); |
373 |
my $library = $builder->build_object( { class => 'Koha::Libraries' } ); |
374 |
|
374 |
|
375 |
my $desk = Koha::Desk->new({ |
375 |
my $desk = Koha::Desk->new({ |
376 |
desk_name => 'my_desk_name_for_test', |
376 |
desk_name => 'my_desk_name_for_test', |
377 |
branchcode => $library->branchcode , |
377 |
branchcode => $library->branchcode , |
378 |
})->store; |
378 |
})->store; |
379 |
ok($desk, "Desk created"); |
379 |
ok($desk, "Desk created"); |
380 |
my $item = $builder->build_sample_item({ library => $library->branchcode }); |
380 |
my $item = $builder->build_sample_item({ library => $library->branchcode }); |
381 |
my $manager = $builder->build_object( { class => "Koha::Patrons" } ); |
381 |
my $manager = $builder->build_object( { class => "Koha::Patrons" } ); |
Lines 386-392
subtest 'Desks' => sub {
Link Here
|
386 |
class => 'Koha::Patrons', |
386 |
class => 'Koha::Patrons', |
387 |
value => { branchcode => $library->branchcode, } |
387 |
value => { branchcode => $library->branchcode, } |
388 |
} |
388 |
} |
389 |
); |
389 |
); |
390 |
|
390 |
|
391 |
my $reserve_id = C4::Reserves::AddReserve( |
391 |
my $reserve_id = C4::Reserves::AddReserve( |
392 |
{ |
392 |
{ |
Lines 405-411
subtest 'Desks' => sub {
Link Here
|
405 |
$hold->set_waiting($desk->desk_id); |
405 |
$hold->set_waiting($desk->desk_id); |
406 |
is($hold->found, 'W', 'Hold is waiting with correct status set'); |
406 |
is($hold->found, 'W', 'Hold is waiting with correct status set'); |
407 |
is($hold->desk_id, $desk->desk_id, 'Hold is attach to its desk'); |
407 |
is($hold->desk_id, $desk->desk_id, 'Hold is attach to its desk'); |
408 |
|
408 |
|
409 |
}; |
409 |
}; |
410 |
|
410 |
|
411 |
$schema->storage->txn_rollback; |
411 |
$schema->storage->txn_rollback; |
412 |
- |
|
|