Bugzilla – Attachment 49045 Details for
Bug 16053
Edit the active currency removes its 'active' flag
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 16053: Add tests
SIGNED-OFF-Bug-16053-Add-tests.patch (text/plain), 1.59 KB, created by
Owen Leonard
on 2016-03-11 16:28:12 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 16053: Add tests
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2016-03-11 16:28:12 UTC
Size:
1.59 KB
patch
obsolete
>From 38621d2130ec3a1d29541d1362c478c33e9836f0 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 11 Mar 2016 11:32:22 +0000 >Subject: [PATCH] [SIGNED-OFF] Bug 16053: Add tests >Content-Type: text/plain; charset="utf-8" > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > t/db_dependent/Koha/Acquisition/Currencies.t | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha/Acquisition/Currencies.t b/t/db_dependent/Koha/Acquisition/Currencies.t >index 3e919af..7e77593 100644 >--- a/t/db_dependent/Koha/Acquisition/Currencies.t >+++ b/t/db_dependent/Koha/Acquisition/Currencies.t >@@ -18,7 +18,7 @@ > # along with Koha; if not, see <http://www.gnu.org/licenses>. > > use Modern::Perl; >-use Test::More tests => 6; >+use Test::More tests => 7; > use Koha::Database; > use Koha::Acquisition::Currency; > use Koha::Acquisition::Currencies; >@@ -56,6 +56,10 @@ is( Koha::Acquisition::Currencies->search->count, $nb_of_currencies + 2, 'The 2 > my $retrieved_currency_2 = Koha::Acquisition::Currencies->find( $new_currency_2->currency ); > is( $retrieved_currency_2->active, 1, 'Active should have been set to 1' ); > >+$retrieved_currency_2->store; >+$retrieved_currency_2 = Koha::Acquisition::Currencies->find( $new_currency_2->currency ); >+is( $retrieved_currency_2->active, 1, 'Editing the existing active currency should not remove its active flag' ); >+ > my $active_currency = Koha::Acquisition::Currencies->get_active; > is ( $active_currency->currency, $retrieved_currency_2->currency, 'The active currency should be the last one marked as active' ); > >-- >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 16053
:
49004
|
49005
|
49045
|
49046
|
49340
|
49341