Lines 1471-1477
subtest 'store() tests' => sub {
Link Here
|
1471 |
|
1471 |
|
1472 |
subtest '_set_found_trigger() tests' => sub { |
1472 |
subtest '_set_found_trigger() tests' => sub { |
1473 |
|
1473 |
|
1474 |
plan tests => 8; |
1474 |
plan tests => 9; |
1475 |
|
1475 |
|
1476 |
$schema->storage->txn_begin; |
1476 |
$schema->storage->txn_begin; |
1477 |
|
1477 |
|
Lines 1541-1546
subtest 'store() tests' => sub {
Link Here
|
1541 |
'type is correct' |
1541 |
'type is correct' |
1542 |
); |
1542 |
); |
1543 |
|
1543 |
|
|
|
1544 |
# Let's build a new item |
1545 |
$item = $builder->build_sample_item({ itemlost => 1, itemlost_on => dt_from_string() }); |
1546 |
$item->set( { itemlost => 0 } )->store; |
1547 |
|
1548 |
$messages = $item->object_messages; |
1549 |
warn Data::Dumper::Dumper( $messages ); |
1550 |
is( scalar @{$messages}, 0, 'This item has no history, no associated lost fines, presumed not lost by patron, no messages returned'); |
1551 |
|
1544 |
$schema->storage->txn_rollback; |
1552 |
$schema->storage->txn_rollback; |
1545 |
}; |
1553 |
}; |
1546 |
|
1554 |
|
1547 |
- |
|
|