|
Lines 297-315
subtest 'search() with branch limits tests' => sub {
Link Here
|
| 297 |
Koha::Patron::Attribute::Types->search()->delete(); |
297 |
Koha::Patron::Attribute::Types->search()->delete(); |
| 298 |
|
298 |
|
| 299 |
my $object_code_1 |
299 |
my $object_code_1 |
| 300 |
= Koha::Patron::Attribute::Type->new( { code => 'code_1', } ) |
300 |
= Koha::Patron::Attribute::Type->new( { code => 'code_1', description => 'a description for code_1' } ) |
| 301 |
->store(); |
301 |
->store(); |
| 302 |
|
302 |
|
| 303 |
my $object_code_2 |
303 |
my $object_code_2 |
| 304 |
= Koha::Patron::Attribute::Type->new( { code => 'code_2', } ) |
304 |
= Koha::Patron::Attribute::Type->new( { code => 'code_2', description => 'a description for code_2' } ) |
| 305 |
->store(); |
305 |
->store(); |
| 306 |
|
306 |
|
| 307 |
my $object_code_3 |
307 |
my $object_code_3 |
| 308 |
= Koha::Patron::Attribute::Type->new( { code => 'code_3', } ) |
308 |
= Koha::Patron::Attribute::Type->new( { code => 'code_3', description => 'a description for code_3' } ) |
| 309 |
->store(); |
309 |
->store(); |
| 310 |
|
310 |
|
| 311 |
my $object_code_4 |
311 |
my $object_code_4 |
| 312 |
= Koha::Patron::Attribute::Type->new( { code => 'code_4', } ) |
312 |
= Koha::Patron::Attribute::Type->new( { code => 'code_4', description => 'a description for code_4' } ) |
| 313 |
->store(); |
313 |
->store(); |
| 314 |
|
314 |
|
| 315 |
is( Koha::Patron::Attribute::Types->search()->count, |
315 |
is( Koha::Patron::Attribute::Types->search()->count, |
| 316 |
- |
|
|