Bugzilla – Attachment 74737 Details for
Bug 20625
Cannot add new patron category without currency
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20625: Add tests
Bug-20625-Add-tests.patch (text/plain), 974 bytes, created by
Jonathan Druart
on 2018-04-23 15:11:29 UTC
(
hide
)
Description:
Bug 20625: Add tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-04-23 15:11:29 UTC
Size:
974 bytes
patch
obsolete
>From c4c0deac7936ae711887b731b107718f4748af62 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 23 Apr 2018 12:03:48 -0300 >Subject: [PATCH] Bug 20625: Add tests > >--- > t/Number/Price.t | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/t/Number/Price.t b/t/Number/Price.t >index d7d143ad01..6eed734443 100644 >--- a/t/Number/Price.t >+++ b/t/Number/Price.t >@@ -1,6 +1,6 @@ > use Modern::Perl; > >-use Test::More tests => 32; >+use Test::More tests => 33; > > use Test::MockModule; > use t::lib::Mocks; >@@ -19,6 +19,9 @@ my $orig_locale = setlocale(LC_NUMERIC); > my $format = { > p_cs_precedes => 1, # Force to place the symbol at the beginning > }; >+ >+is( Koha::Number::Price->new->format( $format ), '0.00', 'There is no currency defined yet, do not explode!' ); >+ > t::lib::Mocks::mock_preference( 'CurrencyFormat', 'US' ); > $currency = Koha::Acquisition::Currency->new({ > currency => 'USD', >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 20625
:
74737
|
74738
|
74740
|
74741
|
74774
|
74775