Lines 388-394
subtest 'replace_library_limits() tests' => sub {
Link Here
|
388 |
|
388 |
|
389 |
subtest 'search_with_library_limits() tests' => sub { |
389 |
subtest 'search_with_library_limits() tests' => sub { |
390 |
|
390 |
|
391 |
plan tests => 5; |
391 |
plan tests => 6; |
392 |
|
392 |
|
393 |
$schema->storage->txn_begin; |
393 |
$schema->storage->txn_begin; |
394 |
|
394 |
|
Lines 427-432
subtest 'search_with_library_limits() tests' => sub {
Link Here
|
427 |
|
427 |
|
428 |
is( $results->count, 3, '3 attribute types are available with no library passed' ); |
428 |
is( $results->count, 3, '3 attribute types are available with no library passed' ); |
429 |
|
429 |
|
|
|
430 |
$results = Koha::Patron::Attribute::Types->search_with_library_limits(); |
431 |
|
432 |
is( $results->count, 3, 'No crash if no params passed' ); |
433 |
|
430 |
$schema->storage->txn_rollback; |
434 |
$schema->storage->txn_rollback; |
431 |
}; |
435 |
}; |
432 |
|
436 |
|
433 |
- |
|
|