From 74ce51bc6f71ab50e5a954253f73e8d479733af9 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 6 Feb 2017 09:18:29 +0100 Subject: [PATCH] Bug 18044: Add a test Signed-off-by: Jonathan Druart --- t/db_dependent/Creators/Lib.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Creators/Lib.t b/t/db_dependent/Creators/Lib.t index 8c61935..749c6a7 100644 --- a/t/db_dependent/Creators/Lib.t +++ b/t/db_dependent/Creators/Lib.t @@ -18,7 +18,7 @@ use Modern::Perl; use Graphics::Magick; -use Test::More tests => 644; +use Test::More tests => 645; use Test::MockModule; use t::lib::Mocks; use t::lib::TestBuilder; @@ -395,6 +395,8 @@ is( $templates->[0]->{row_gap}, 0.3, 'row_gap is good is( $templates->[0]->{units}, 'POINT', 'units is good' ); is( $templates->[0]->{creator}, 'Labels', 'creator is good' ); +$templates = get_all_templates( { filters => { rows => [-42, 7]} } ); +is( @$templates, $count, 'There is 1 template matching' ); # With orderby param ------------------ $templates = get_all_templates( { orderby => 'rows DESC' } ); -- 2.9.3