Bugzilla – Attachment 74740 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), 1019 bytes, created by
Mark Tompsett
on 2018-04-23 15:43:26 UTC
(
hide
)
Description:
Bug 20625: Add tests
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2018-04-23 15:43:26 UTC
Size:
1019 bytes
patch
obsolete
>From 51cb94f388bf95f524ea306755c50cb1cd40911e 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 > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> >--- > 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 d7d143a..6eed734 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.1.4
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