Lines 1630-1639
subtest 'BorrowersLog tests' => sub {
Link Here
|
1630 |
|
1630 |
|
1631 |
Koha::ActionLogs->search()->delete(); |
1631 |
Koha::ActionLogs->search()->delete(); |
1632 |
$patron->get_from_storage(); |
1632 |
$patron->get_from_storage(); |
1633 |
$patron->set( { debarred => "" }); |
1633 |
$patron->set( { debarred => "" } ); |
1634 |
$patron->store; |
1634 |
$patron->store; |
1635 |
my $log = Koha::ActionLogs->search( { module => 'MEMBERS', action => 'MODIFY', object => $patron->borrowernumber } )->next; |
1635 |
my $log = Koha::ActionLogs->search( |
1636 |
isnt( defined $log, "No action log generated where incoming changed column is empty string and value in storage is NULL" ); |
1636 |
{ |
|
|
1637 |
module => 'MEMBERS', |
1638 |
action => 'MODIFY', |
1639 |
object => $patron->borrowernumber, |
1640 |
} |
1641 |
)->next; |
1642 |
isnt( |
1643 |
defined $log, |
1644 |
"No action log generated where incoming changed column is empty string and value in storage is NULL" |
1645 |
); |
1637 |
}; |
1646 |
}; |
1638 |
$schema->storage->txn_rollback; |
1647 |
$schema->storage->txn_rollback; |
1639 |
|
1648 |
|
1640 |
- |
|
|