View | Details | Raw Unified | Return to bug 16407
Collapse All | Expand All

(-)a/t/db_dependent/Koha_borrower_modifications.t (-4 / +2 lines)
Lines 48-55 ok( Link Here
48
    'Test that Verify() method fails for a bad token'
48
    'Test that Verify() method fails for a bad token'
49
);
49
);
50
50
51
## Create new pending modification, but for an existing borrower
51
## Create new pending modification for a patron
52
## But not a hardcoded borrowernumber of course (Bug 16407)
53
my $builder = t::lib::TestBuilder->new;
52
my $builder = t::lib::TestBuilder->new;
54
my $borr1 = $builder->build({ source => 'Borrower' })->{borrowernumber};
53
my $borr1 = $builder->build({ source => 'Borrower' })->{borrowernumber};
55
Koha::Patron::Modifications->new( borrowernumber => $borr1 )
54
Koha::Patron::Modifications->new( borrowernumber => $borr1 )
Lines 59-65 Koha::Patron::Modifications->new( borrowernumber => $borr1 ) Link Here
59
ok( Koha::Patron::Modifications->GetPendingModificationsCount() == 1,
58
ok( Koha::Patron::Modifications->GetPendingModificationsCount() == 1,
60
    'Test GetPendingModificationsCount()' );
59
    'Test GetPendingModificationsCount()' );
61
60
62
## Create new pending modification for another existing borrower
61
## Create new pending modification for another patron
63
my $borr2 = $builder->build({ source => 'Borrower' })->{borrowernumber};
62
my $borr2 = $builder->build({ source => 'Borrower' })->{borrowernumber};
64
Koha::Patron::Modifications->new( borrowernumber => $borr2 )
63
Koha::Patron::Modifications->new( borrowernumber => $borr2 )
65
  ->AddModifications( { surname => 'Smith', firstname => 'Sandy' } );
64
  ->AddModifications( { surname => 'Smith', firstname => 'Sandy' } );
66
- 

Return to bug 16407