Lines 153-161
subtest 'Sharing' => sub {
Link Here
|
153 |
is( $number_of_shelves_shared, 2, 'To be sure no shares have been removed' ); |
153 |
is( $number_of_shelves_shared, 2, 'To be sure no shares have been removed' ); |
154 |
|
154 |
|
155 |
# Test double accept (BZ 11943) before removing the accepted share |
155 |
# Test double accept (BZ 11943) before removing the accepted share |
156 |
my $third_share = $shelf_to_share->share('valid key number 2'); |
156 |
my $third_share = $shelf_to_share->share('valid key3'); |
157 |
is( Koha::Virtualshelfshares->search->count, 3, 'Three shares' ); |
157 |
is( Koha::Virtualshelfshares->search->count, 3, 'Three shares' ); |
158 |
$is_accepted = $third_share->accept( 'valid key number 2', $share_with_me->{borrowernumber} ); |
158 |
$is_accepted = $third_share->accept( 'valid key3', $share_with_me->{borrowernumber} ); |
159 |
is( $is_accepted->shelfnumber, $shelf_to_share->shelfnumber, 'Accept returned the existing share' ); |
159 |
is( $is_accepted->shelfnumber, $shelf_to_share->shelfnumber, 'Accept returned the existing share' ); |
160 |
is( Koha::Virtualshelfshares->search->count, 2, 'Check that number of shares went down again' ); |
160 |
is( Koha::Virtualshelfshares->search->count, 2, 'Check that number of shares went down again' ); |
161 |
|
161 |
|
162 |
- |
|
|