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

(-)a/t/db_dependent/Koha/Patron.t (-3 / +3 lines)
Lines 166-174 subtest 'login_attempts tests' => sub { Link Here
166
        }
166
        }
167
    );
167
    );
168
    my $patron_info = $patron->unblessed;
168
    my $patron_info = $patron->unblessed;
169
    $patron->delete;
169
    delete $patron_info->{login_attempts};
170
    delete $patron_info->{login_attempts};
170
    my $new_patron = Koha::Patron->new($patron_info);
171
    my $new_patron = Koha::Patron->new($patron_info)->store;
171
    is( $new_patron->login_attempts, 0, "login_attempts defaults to 0 as expected");
172
    is( $new_patron->discard_changes->login_attempts, 0, "login_attempts defaults to 0 as expected");
172
173
173
    $schema->storage->txn_rollback;
174
    $schema->storage->txn_rollback;
174
};
175
};
175
- 

Return to bug 24379