Lines 377-382
subtest 'extended_attributes' => sub {
Link Here
|
377 |
my $schema = Koha::Database->new->schema; |
377 |
my $schema = Koha::Database->new->schema; |
378 |
$schema->storage->txn_begin; |
378 |
$schema->storage->txn_begin; |
379 |
|
379 |
|
|
|
380 |
Koha::Patron::Attribute::Types->search->delete; |
381 |
|
380 |
my $patron_1 = $builder->build_object({class=> 'Koha::Patrons'}); |
382 |
my $patron_1 = $builder->build_object({class=> 'Koha::Patrons'}); |
381 |
my $patron_2 = $builder->build_object({class=> 'Koha::Patrons'}); |
383 |
my $patron_2 = $builder->build_object({class=> 'Koha::Patrons'}); |
382 |
|
384 |
|
Lines 507-512
subtest 'extended_attributes' => sub {
Link Here
|
507 |
plan tests => 3; |
509 |
plan tests => 3; |
508 |
|
510 |
|
509 |
$schema->storage->txn_begin; |
511 |
$schema->storage->txn_begin; |
|
|
512 |
Koha::Patron::Attribute::Types->search->delete; |
510 |
|
513 |
|
511 |
my $patron = $builder->build_object({ class => 'Koha::Patrons' }); |
514 |
my $patron = $builder->build_object({ class => 'Koha::Patrons' }); |
512 |
my $attribute_type = $builder->build_object( |
515 |
my $attribute_type = $builder->build_object( |
Lines 541-546
subtest 'extended_attributes' => sub {
Link Here
|
541 |
plan tests => 5; |
544 |
plan tests => 5; |
542 |
|
545 |
|
543 |
$schema->storage->txn_begin; |
546 |
$schema->storage->txn_begin; |
|
|
547 |
Koha::Patron::Attribute::Types->search->delete; |
544 |
|
548 |
|
545 |
my $patron_1 = $builder->build_object({ class => 'Koha::Patrons' }); |
549 |
my $patron_1 = $builder->build_object({ class => 'Koha::Patrons' }); |
546 |
my $patron_2 = $builder->build_object({ class => 'Koha::Patrons' }); |
550 |
my $patron_2 = $builder->build_object({ class => 'Koha::Patrons' }); |
Lines 593-598
subtest 'extended_attributes' => sub {
Link Here
|
593 |
plan tests => 3; |
597 |
plan tests => 3; |
594 |
|
598 |
|
595 |
$schema->storage->txn_begin; |
599 |
$schema->storage->txn_begin; |
|
|
600 |
Koha::Patron::Attribute::Types->search->delete; |
596 |
|
601 |
|
597 |
my $patron = $builder->build_object({ class => 'Koha::Patrons' }); |
602 |
my $patron = $builder->build_object({ class => 'Koha::Patrons' }); |
598 |
|
603 |
|
Lines 637-642
subtest 'extended_attributes' => sub {
Link Here
|
637 |
plan tests => 5; |
642 |
plan tests => 5; |
638 |
|
643 |
|
639 |
$schema->storage->txn_begin; |
644 |
$schema->storage->txn_begin; |
|
|
645 |
Koha::Patron::Attribute::Types->search->delete; |
640 |
|
646 |
|
641 |
my $patron = $builder->build_object({ class => 'Koha::Patrons' }); |
647 |
my $patron = $builder->build_object({ class => 'Koha::Patrons' }); |
642 |
|
648 |
|
643 |
- |
|
|