Bugzilla – Attachment 65055 Details for
Bug 18942
CanUserUseBudget.t and CanUserModifyBudget.t missing system user test cases
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18942: Add test case to prove change
Bug-18942-Add-test-case-to-prove-change.patch (text/plain), 1.47 KB, created by
Lee Jamison
on 2017-07-14 15:15:07 UTC
(
hide
)
Description:
Bug 18942: Add test case to prove change
Filename:
MIME Type:
Creator:
Lee Jamison
Created:
2017-07-14 15:15:07 UTC
Size:
1.47 KB
patch
obsolete
>From fa1ffcb15303c1d82e2fba66f5280bb8afcaad23 Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Fri, 14 Jul 2017 14:41:39 +0000 >Subject: [PATCH] Bug 18942: Add test case to prove change > >Signed-off-by: Lee Jamison <ldjamison@marywood.edu> >--- > t/Budgets/CanUserModifyBudget.t | 3 ++- > t/Budgets/CanUserUseBudget.t | 4 +++- > 2 files changed, 5 insertions(+), 2 deletions(-) > >diff --git a/t/Budgets/CanUserModifyBudget.t b/t/Budgets/CanUserModifyBudget.t >index bef4237..16d091a 100644 >--- a/t/Budgets/CanUserModifyBudget.t >+++ b/t/Budgets/CanUserModifyBudget.t >@@ -1,7 +1,7 @@ > #!/usr/bin/perl > > use Modern::Perl; >-use Test::More tests => 133; >+use Test::More tests => 134; > > use C4::Budgets; > >@@ -135,6 +135,7 @@ my $budget16 = { > > my $userenv = {}; > >+ok (!CanUserModifyBudget(0, undef, {})); > > ok (CanUserModifyBudget($borrower1, $budget1, {superlibrarian => 1})); > ok (CanUserModifyBudget($borrower1, $budget1, { >diff --git a/t/Budgets/CanUserUseBudget.t b/t/Budgets/CanUserUseBudget.t >index ca94065..83884ff 100644 >--- a/t/Budgets/CanUserUseBudget.t >+++ b/t/Budgets/CanUserUseBudget.t >@@ -1,7 +1,7 @@ > #!/usr/bin/perl > > use Modern::Perl; >-use Test::More tests => 69; >+use Test::More tests => 70; > > use C4::Budgets; > >@@ -136,6 +136,8 @@ my $budget16 = { > > my $userenv = {}; > >+ok (!CanUserUseBudget(0, undef, {})); >+ > ok (CanUserUseBudget($borrower1, $budget1, {superlibrarian => 1})); > ok (CanUserUseBudget($borrower1, $budget1, { > acquisition => { >-- >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 18942
:
65051
|
65052
|
65055
|
65056
|
65078
|
65079
|
65080
|
65081
|
65082