Bug 39729: Add tests
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
parent
2d73f3eb42
commit
501d4c5769
|
|
@ -1275,6 +1275,9 @@ subtest "filter_by_last_update" => sub {
|
|||
my $count = $patrons->filter_by_last_update( { timestamp_column_name => 'updated_on', days => 2 } )->count;
|
||||
is( $count, 3, '3 patrons have been updated before the last 2 days (exclusive)' );
|
||||
|
||||
$count = $patrons->filter_by_last_update( { timestamp_column_name => 'updated_on', exact_days => 2 } )->count;
|
||||
is( $count, 1, '1 patron has been updated 2 days ago' );
|
||||
|
||||
$count = $patrons->filter_by_last_update( { timestamp_column_name => 'updated_on', min_days => 2 } )->count;
|
||||
is( $count, 4, '4 patrons have been updated before the last 2 days (inclusive)' );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue