Bug 13601: t/Letters.t needs to mock the dateformat pref
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 16 Mar 2015 13:54:44 +0000 (14:54 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 30 Mar 2015 16:40:05 +0000 (13:40 -0300)
Test passes OK.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
t/Letters.t

index 18ae129..4a088da 100755 (executable)
@@ -42,6 +42,8 @@ my $dbh = C4::Context->dbh();
 
 $dbh->{mock_add_resultset} = $mock_letters;
 
+t::lib::Mocks::mock_preference('dateformat', 'metric');
+
 my $letters = C4::Letters::GetLetters();
 
 my ( $ISBN_letter ) = grep {$_->{code} eq 'ISBN'} @$letters;