Lines 1405-1411
subtest 'store() tests' => sub {
Link Here
|
1405 |
|
1405 |
|
1406 |
subtest '_set_found_trigger() tests' => sub { |
1406 |
subtest '_set_found_trigger() tests' => sub { |
1407 |
|
1407 |
|
1408 |
plan tests => 8; |
1408 |
plan tests => 9; |
1409 |
|
1409 |
|
1410 |
$schema->storage->txn_begin; |
1410 |
$schema->storage->txn_begin; |
1411 |
|
1411 |
|
Lines 1475-1480
subtest 'store() tests' => sub {
Link Here
|
1475 |
'type is correct' |
1475 |
'type is correct' |
1476 |
); |
1476 |
); |
1477 |
|
1477 |
|
|
|
1478 |
# Let's build a new item |
1479 |
$item = $builder->build_sample_item({ itemlost => 1, itemlost_on => dt_from_string() }); |
1480 |
$item->set( { itemlost => 0 } )->store; |
1481 |
|
1482 |
$messages = $item->object_messages; |
1483 |
warn Data::Dumper::Dumper( $messages ); |
1484 |
is( scalar @{$messages}, 0, 'This item has no history, no associated lost fines, presumed not lost by patron, no messages returned'); |
1485 |
|
1478 |
$schema->storage->txn_rollback; |
1486 |
$schema->storage->txn_rollback; |
1479 |
}; |
1487 |
}; |
1480 |
|
1488 |
|
1481 |
- |
|
|