Bugzilla – Attachment 51110 Details for
Bug 16419
Tests of t/db_dependent/Acquisition.t do not pass
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16419: follow-up of bug 11371 - Fix t/db_dependent/Acquisition.t
Bug-16419-follow-up-of-bug-11371---Fix-tdbdependen.patch (text/plain), 1.83 KB, created by
Tomás Cohen Arazi (tcohen)
on 2016-05-02 15:10:28 UTC
(
hide
)
Description:
Bug 16419: follow-up of bug 11371 - Fix t/db_dependent/Acquisition.t
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2016-05-02 15:10:28 UTC
Size:
1.83 KB
patch
obsolete
>From 148fe9e1279cfd016d6746f9bc165bcfa12f23c3 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 2 May 2016 15:41:42 +0100 >Subject: [PATCH] Bug 16419: follow-up of bug 11371 - Fix > t/db_dependent/Acquisition.t >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >The tests added by bug 11371 have been put after the rollback statement. > >Test plan: > prove t/db_dependent/Acquisition.t >should return green > >Signed-off-by: Marc Véron <veron@veron.ch> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >Tests fail before the patch, and pass with it. QA scripts like the patch too. >--- > t/db_dependent/Acquisition.t | 8 +++----- > 1 file changed, 3 insertions(+), 5 deletions(-) > >diff --git a/t/db_dependent/Acquisition.t b/t/db_dependent/Acquisition.t >index 6063f09..16e0c86 100755 >--- a/t/db_dependent/Acquisition.t >+++ b/t/db_dependent/Acquisition.t >@@ -941,16 +941,14 @@ ok(($order4->{cancellationreason} eq "foobar"), "order has cancellation reason \ > ok((not defined GetBiblio($order4->{biblionumber})), "biblio does not exist anymore"); > # End of tests for DelOrder > >-$schema->storage->txn_rollback(); > # Budget reports >-#my @report = GetBudgetReport(1); >-#ok(@report >= 1, "GetBudgetReport OK"); >- > my $all_count = scalar GetBudgetsReport(); > ok($all_count >= 1, "GetBudgetReport OK"); > > my $active_count = scalar GetBudgetsReport(1); > ok($active_count >= 1 , "GetBudgetsReport(1) OK"); > >-ok($all_count == scalar GetBudgetsReport(), "GetBudgetReport returns inactive budget period acquisitions."); >+is($all_count, scalar GetBudgetsReport(), "GetBudgetReport returns inactive budget period acquisitions."); > ok($active_count >= scalar GetBudgetsReport(1), "GetBudgetReport doesn't return inactive budget period acquisitions."); >+ >+$schema->storage->txn_rollback(); >-- >2.7.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 16419
:
51105
|
51107
| 51110